Skip to content

Commit ad73d6f

Browse files
Christoph Hellwigaxboe
authored andcommitted
mmc: complete requests from ->timeout
By completing the request entirely in the driver we can remove the BLK_EH_HANDLED return value and thus the split responsibility between the driver and the block layer that has been causing trouble. [While this keeps existing behavior it seems to mismatch the comment, maintainers please chime in!] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1fc2b62 commit ad73d6f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/mmc/core/queue.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ static enum blk_eh_timer_return mmc_cqe_timed_out(struct request *req)
111111
__mmc_cqe_recovery_notifier(mq);
112112
return BLK_EH_RESET_TIMER;
113113
}
114-
/* No timeout */
115-
return BLK_EH_HANDLED;
114+
/* No timeout (XXX: huh? comment doesn't make much sense) */
115+
blk_mq_complete_request(req);
116+
return BLK_EH_DONE;
116117
default:
117118
/* Timeout is handled by mmc core */
118119
return BLK_EH_RESET_TIMER;

0 commit comments

Comments
 (0)