patch-2.3.99-pre9 linux/drivers/block/elevator.c

Next file: linux/drivers/block/floppy.c
Previous file: linux/drivers/block/DAC960.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/block/elevator.c linux/drivers/block/elevator.c
@@ -105,7 +105,7 @@
 	int ret;
 	blkelv_ioctl_arg_t output;
 
-	output.queue_ID			= elevator;
+	output.queue_ID			= elevator->queue_ID;
 	output.read_latency		= elevator->read_latency;
 	output.write_latency		= elevator->write_latency;
 	output.max_bomb_segments	= elevator->max_bomb_segments;
@@ -146,5 +146,8 @@
 
 void elevator_init(elevator_t * elevator)
 {
+	static unsigned int queue_ID;
+
 	*elevator = ELEVATOR_DEFAULTS;
+	elevator->queue_ID = queue_ID++;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)