diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-20 16:03:03 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-20 20:16:10 +0200 |
commit | eb1a61a3639f0726161d780299da6177ab35f9f9 (patch) | |
tree | 8de8377d8d3e5f3a89b34632181d00c09abb60f0 /drivers/block/null_blk.c | |
parent | loop: zero-fill bio on the submitting cpu (diff) | |
download | linux-eb1a61a3639f0726161d780299da6177ab35f9f9.tar.xz linux-eb1a61a3639f0726161d780299da6177ab35f9f9.zip |
null_blk: don't pass always-0 req->errors to blk_mq_complete_request
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/null_blk.c')
-rw-r--r-- | drivers/block/null_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index e79e3d24e229..0ca4aa34edb9 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -281,7 +281,7 @@ static inline void null_handle_cmd(struct nullb_cmd *cmd) case NULL_IRQ_SOFTIRQ: switch (queue_mode) { case NULL_Q_MQ: - blk_mq_complete_request(cmd->rq, cmd->rq->errors); + blk_mq_complete_request(cmd->rq, 0); break; case NULL_Q_RQ: blk_complete_request(cmd->rq); |