summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-20 16:03:02 +0200
committerJens Axboe <axboe@fb.com>2017-04-20 20:16:10 +0200
commitfe2cb2905c3dc872158e7ce30df05d72c3989645 (patch)
tree1d0c3f8c842cc2a3221424a57719dac0fabc809d /drivers/block/loop.h
parentscsi: introduce a result field in struct scsi_request (diff)
downloadlinux-fe2cb2905c3dc872158e7ce30df05d72c3989645.tar.xz
linux-fe2cb2905c3dc872158e7ce30df05d72c3989645.zip
loop: zero-fill bio on the submitting cpu
In thruth I've just audited which blk-mq drivers don't currently have a complete callback, but I think this change is at least borderline useful. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/loop.h')
-rw-r--r--drivers/block/loop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/loop.h b/drivers/block/loop.h
index fb2237c73e61..fecd3f97ef8c 100644
--- a/drivers/block/loop.h
+++ b/drivers/block/loop.h
@@ -70,6 +70,7 @@ struct loop_cmd {
struct request *rq;
struct list_head list;
bool use_aio; /* use AIO interface to handle I/O */
+ long ret;
struct kiocb iocb;
};