patch-2.3.1 linux/drivers/block/ll_rw_blk.c
Next file: linux/drivers/block/macide.c
Previous file: linux/drivers/block/ide_modes.h
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Tue May 11 14:37:40 1999
-  Orig file: 
v2.3.0/linux/drivers/block/ll_rw_blk.c
-  Orig date: 
Thu Mar 11 23:20:14 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
@@ -53,7 +53,7 @@
 /*
  * used to wait on when there are no free requests
  */
-struct wait_queue * wait_for_request = NULL;
+DECLARE_WAIT_QUEUE_HEAD(wait_for_request);
 
 /* This specifies how many sectors to read ahead on the disk.  */
 
@@ -208,7 +208,7 @@
 static struct request * __get_request_wait(int n, kdev_t dev)
 {
 	register struct request *req;
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 	unsigned long flags;
 
 	add_wait_queue(&wait_for_request, &wait);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)