patch-2.3.27 linux/drivers/block/nbd.c

Next file: linux/drivers/cdrom/cdrom.c
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/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_ATOMIC;
 		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)