]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/nbd.c
serial167: prepare to push BKL down into drivers
[linux-2.6-omap-h63xx.git] / drivers / block / nbd.c
index a3da198ca429c6de062a80dd6cc5ccae730a8e82..ad98dda6037dd5193baa266bf2471c52ca1b6f79 100644 (file)
@@ -339,7 +339,7 @@ static struct request *nbd_read_stat(struct nbd_device *lo)
        }
 
        req = nbd_find_request(lo, *(struct request **)reply.handle);
-       if (unlikely(IS_ERR(req))) {
+       if (IS_ERR(req)) {
                result = PTR_ERR(req);
                if (result != -ENOENT)
                        goto harderror;
@@ -577,6 +577,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file,
        switch (cmd) {
        case NBD_DISCONNECT:
                printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name);
+               blk_rq_init(NULL, &sreq);
                sreq.cmd_type = REQ_TYPE_SPECIAL;
                nbd_cmd(&sreq) = NBD_CMD_DISC;
                /*