patch-2.1.87 linux/drivers/block/ll_rw_blk.c

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

diff -u --recursive --new-file v2.1.86/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
@@ -35,6 +35,11 @@
 DECLARE_TASK_QUEUE(tq_disk);
 
 /*
+ * Protect the request list against multiple users..
+ */
+spinlock_t current_lock = SPIN_LOCK_UNLOCKED;
+
+/*
  * used to wait on when there are no free requests
  */
 struct wait_queue * wait_for_request = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov