Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273823
b: refs/heads/master
c: 5eedf54
h: refs/heads/master
i:
  273821: f37dd3e
  273819: d8bb6db
  273815: 8b293a2
  273807: f78d240
  273791: 5ff68f3
v: v3
  • Loading branch information
WANG Cong authored and Jens Axboe committed Aug 19, 2011
1 parent 24c1d19 commit 9ed03d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7742ce4ab49976851ce7f0185dcbe491935371a2
refs/heads/master: 5eedf5415cd57f8db8642a5db4cf8e5507390030
11 changes: 5 additions & 6 deletions trunk/drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ static void sock_shutdown(struct nbd_device *lo, int lock)
if (lock)
mutex_lock(&lo->tx_lock);
if (lo->sock) {
printk(KERN_WARNING "%s: shutting down socket\n",
lo->disk->disk_name);
dev_warn(disk_to_dev(lo->disk), "shutting down socket\n");
kernel_sock_shutdown(lo->sock, SHUT_RDWR);
lo->sock = NULL;
}
Expand Down Expand Up @@ -576,7 +575,7 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *lo,
case NBD_DISCONNECT: {
struct request sreq;

printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name);
dev_info(disk_to_dev(lo->disk), "NBD_DISCONNECT\n");

blk_rq_init(NULL, &sreq);
sreq.cmd_type = REQ_TYPE_SPECIAL;
Expand Down Expand Up @@ -674,7 +673,7 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *lo,
file = lo->file;
lo->file = NULL;
nbd_clear_que(lo);
printk(KERN_WARNING "%s: queue cleared\n", lo->disk->disk_name);
dev_warn(disk_to_dev(lo->disk), "queue cleared\n");
if (file)
fput(file);
lo->bytesize = 0;
Expand All @@ -694,8 +693,8 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *lo,
return 0;

case NBD_PRINT_DEBUG:
printk(KERN_INFO "%s: next = %p, prev = %p, head = %p\n",
bdev->bd_disk->disk_name,
dev_info(disk_to_dev(lo->disk),
"next = %p, prev = %p, head = %p\n",
lo->queue_head.next, lo->queue_head.prev,
&lo->queue_head);
return 0;
Expand Down

0 comments on commit 9ed03d5

Please sign in to comment.