mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
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>
This commit is contained in:
parent
fe2cb2905c
commit
eb1a61a363
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ static inline void null_handle_cmd(struct nullb_cmd *cmd)
|
||||||
case NULL_IRQ_SOFTIRQ:
|
case NULL_IRQ_SOFTIRQ:
|
||||||
switch (queue_mode) {
|
switch (queue_mode) {
|
||||||
case NULL_Q_MQ:
|
case NULL_Q_MQ:
|
||||||
blk_mq_complete_request(cmd->rq, cmd->rq->errors);
|
blk_mq_complete_request(cmd->rq, 0);
|
||||||
break;
|
break;
|
||||||
case NULL_Q_RQ:
|
case NULL_Q_RQ:
|
||||||
blk_complete_request(cmd->rq);
|
blk_complete_request(cmd->rq);
|
||||||
|
|
Loading…
Reference in a new issue