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

Next file: linux/drivers/block/raid1.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.46/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -248,7 +248,6 @@
 void nbd_clear_que(struct nbd_device *lo)
 {
 	struct request *req;
-	unsigned long flags;
 
 	while (!list_empty(&lo->queue_head)) {
 		req = blkdev_entry_prev_request(&lo->queue_head);
@@ -405,8 +404,8 @@
 		return 0;
 #ifdef PARANOIA
 	case NBD_PRINT_DEBUG:
-		printk(KERN_INFO "NBD device %d: queue_head = %p. Global: in %d, out %d\n",
-		       dev, lo->queue_head, requests_in, requests_out);
+		printk(KERN_INFO "NBD device %d: next = %p, prev = %p. Global: in %d, out %d\n",
+		       dev, lo->queue_head.next, lo->queue_head.prev, requests_in, requests_out);
 		return 0;
 #endif
 	case BLKGETSIZE:

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