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

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

diff -u --recursive --new-file v2.3.0/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -75,7 +75,7 @@
 	nbdev = &nbd_dev[dev];
 	nbd_dev[dev].refcnt++;
 	if (!(nbdev->flags & NBD_INITIALISED)) {
-		nbdev->queue_lock = MUTEX;
+		init_MUTEX(&nbdev->queue_lock);
 		nbdev->flags |= NBD_INITIALISED;
 	}
 	MOD_INC_USE_COUNT;

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