diff options
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r-- | drivers/block/nbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index bdba282f15e4..ad98dda6037d 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -577,6 +577,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file, | |||
577 | switch (cmd) { | 577 | switch (cmd) { |
578 | case NBD_DISCONNECT: | 578 | case NBD_DISCONNECT: |
579 | printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name); | 579 | printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name); |
580 | blk_rq_init(NULL, &sreq); | ||
580 | sreq.cmd_type = REQ_TYPE_SPECIAL; | 581 | sreq.cmd_type = REQ_TYPE_SPECIAL; |
581 | nbd_cmd(&sreq) = NBD_CMD_DISC; | 582 | nbd_cmd(&sreq) = NBD_CMD_DISC; |
582 | /* | 583 | /* |