patch-2.2.18 linux/drivers/block/nbd.c
Next file: linux/drivers/block/q40ide.c
Previous file: linux/drivers/block/macide.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sat Oct 28 20:13:14 2000
- Orig file:
v2.2.17/drivers/block/nbd.c
- Orig date:
Fri Apr 21 12:45:50 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -35,6 +35,7 @@
#include <linux/errno.h>
#include <linux/file.h>
#include <linux/ioctl.h>
+#include <net/sock.h>
#include <asm/segment.h>
#include <asm/uaccess.h>
@@ -105,6 +106,7 @@
do {
+ sock->sk->allocation = GFP_BUFFER;
iov.iov_base = buf;
iov.iov_len = size;
msg.msg_name = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)