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 60cc54368b66..f75bda16a1fc 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -537,6 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file, | |||
537 | switch (cmd) { | 537 | switch (cmd) { |
538 | case NBD_DISCONNECT: | 538 | case NBD_DISCONNECT: |
539 | printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name); | 539 | printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name); |
540 | blk_rq_init(NULL, &sreq); | ||
540 | sreq.cmd_type = REQ_TYPE_SPECIAL; | 541 | sreq.cmd_type = REQ_TYPE_SPECIAL; |
541 | nbd_cmd(&sreq) = NBD_CMD_DISC; | 542 | nbd_cmd(&sreq) = NBD_CMD_DISC; |
542 | /* | 543 | /* |