Commit 3e06eb3d authored by Minchan Kim's avatar Minchan Kim Committed by Jens Axboe
Browse files

block: do not put mq context in blk_mq_alloc_request_hctx

In blk_mq_alloc_request_hctx, blk_mq_sched_get_request doesn't
get sw context so we don't need to put the context with
blk_mq_put_ctx. Unless, we will see preempt counter underflow.

Cc: Omar Sandoval <>
Signed-off-by: default avatarMinchan Kim <>
Reviewed-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarJens Axboe <>
parent 3e8a7069
......@@ -324,7 +324,6 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int rw,
rq = blk_mq_sched_get_request(q, NULL, rw, &alloc_data);
if (!rq)
Markdown is supported
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