|
@@ -599,8 +599,10 @@ static void blk_mq_check_expired(struct blk_mq_hw_ctx *hctx,
|
|
* If a request wasn't started before the queue was
|
|
* If a request wasn't started before the queue was
|
|
* marked dying, kill it here or it'll go unnoticed.
|
|
* marked dying, kill it here or it'll go unnoticed.
|
|
*/
|
|
*/
|
|
- if (unlikely(blk_queue_dying(rq->q)))
|
|
|
|
- blk_mq_complete_request(rq, -EIO);
|
|
|
|
|
|
+ if (unlikely(blk_queue_dying(rq->q))) {
|
|
|
|
+ rq->errors = -EIO;
|
|
|
|
+ blk_mq_end_request(rq, rq->errors);
|
|
|
|
+ }
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|