lkml.org 
[lkml]   [1998]   [Mar]   [29]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 27 Mar 1998 16:49:09 +0100
FromPavel Machek <>
SubjectNetwork block device fix
Hi!

2.1.91 broke nbd. With this patch nbd is back up and running (well,
with CVS kernel. Official kernel still missess neccessary end_request
cleanup). (Second part is not really neccessary, but it is good thing,
anyway). Please apply. (mj: please apply into CVS)

								Pavel

--- clean/drivers/block/nbd.c	Fri Mar 27 14:23:51 1998
+++ linux/drivers/block/nbd.c	Fri Mar 27 15:36:05 1998
@@ -32,6 +32,7 @@
 #include <linux/fs.h>
 #include <linux/stat.h>
 #include <linux/errno.h>
+#include <linux/file.h>
 
 #include <asm/segment.h>
 #include <asm/uaccess.h>
@@ -432,7 +433,7 @@
 #endif
 	blksize_size[MAJOR_NR] = nbd_blksizes;
 	blk_size[MAJOR_NR] = nbd_sizes;
-	blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
+	blk_dev[MAJOR_NR].request_fn = do_nbd_request;
 	for (i = 0; i < MAX_NBD; i++) {
 		nbd_dev[i].refcnt = 0;
 		nbd_dev[i].file = NULL;
-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.106 / U:0.410 seconds]
©2003-2008 Jasper Spaans