mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +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
@ -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 New Issue
Block a user