Skip to content
Commit 7fe31130 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: update hardware and software queues for sleeping alloc



If we end up sleeping due to running out of requests, we should
update the hardware and software queues in the map ctx structure.
Otherwise we could end up having rq->mq_ctx point to the pre-sleep
context, and risk corrupting ctx->rq_list since we'll be
grabbing the wrong lock when inserting the request.

Reported-by: default avatarDave Jones <davej@codemonkey.org.uk>
Reported-by: default avatarChris Mason <clm@fb.com>
Tested-by: default avatarChris Mason <clm@fb.com>
Fixes: 63581af3

 ("blk-mq: remove non-blocking pass in blk_mq_map_request")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 94d7dea4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment