patch-2.4.7 linux/include/linux/blkdev.h

Next file: linux/include/linux/cdrom.h
Previous file: linux/include/linux/apm_bios.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/include/linux/blkdev.h linux/include/linux/blkdev.h
@@ -15,8 +15,8 @@
 /*
  * Ok, this is an expanded form so that we can use the same
  * request for paging requests when that is implemented. In
- * paging, 'bh' is NULL, and the semaphore is used to wait
- * for read/write completion.
+ * paging, 'bh' is NULL, and the completion is used to wait
+ * for the IO to be ready.
  */
 struct request {
 	struct list_head queue;
@@ -41,7 +41,7 @@
 	unsigned long current_nr_sectors;
 	void * special;
 	char * buffer;
-	struct semaphore * sem;
+	struct completion * waiting;
 	struct buffer_head * bh;
 	struct buffer_head * bhtail;
 	request_queue_t *q;

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