From: Christoph Hellwig Date: Thu, 20 Apr 2017 14:03:03 +0000 (+0200) Subject: null_blk: don't pass always-0 req->errors to blk_mq_complete_request X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eb1a61a3639f0726161d780299da6177ab35f9f9;p=openwrt%2Fstaging%2Fblogic.git null_blk: don't pass always-0 req->errors to blk_mq_complete_request Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Signed-off-by: Jens Axboe --- 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);