lkml.org 
[lkml]   [1998]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 13:41    [W:0.187 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site