summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMinchan Kim2017-03-30 07:20:45 +0200
committerJens Axboe2017-03-30 16:13:05 +0200
commit3e06eb3dacdff52749df85694cf6bc48283973c6 (patch)
treebc38f716ed89e087343088cd7eae45ccfef41d81 /block
parentblk-mq: include errors in did_work calculation (diff)
downloadkernel-qcow2-linux-3e06eb3dacdff52749df85694cf6bc48283973c6.tar.gz
kernel-qcow2-linux-3e06eb3dacdff52749df85694cf6bc48283973c6.tar.xz
kernel-qcow2-linux-3e06eb3dacdff52749df85694cf6bc48283973c6.zip
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 <osandov@fb.com> Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index e6ac774b0e41..ef63367077ad 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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);
- blk_mq_put_ctx(alloc_data.ctx);
blk_queue_exit(q);
if (!rq)