projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22fa792
)
blk-mq: remove a pointless queue enter pair in blk_mq_alloc_request_hctx
author
Christoph Hellwig
<hch@lst.de>
Sat, 16 May 2020 18:28:00 +0000
(20:28 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 May 2020 15:34:29 +0000
(09:34 -0600)
No need for two queue references.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 4e62b97dceb48ed6ba5dd9790920a9edb71b5aa6..b1c12de8926e31ba1384f4d2516b42348a2fd4e8 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-455,10
+455,7
@@
struct request *blk_mq_alloc_request_hctx(struct request_queue *q,
alloc_data.ctx = __blk_mq_get_ctx(q, cpu);
ret = -EWOULDBLOCK;
- blk_queue_enter_live(q);
rq = blk_mq_get_request(q, NULL, &alloc_data);
- blk_queue_exit(q);
-
if (!rq)
goto out_queue_exit;
return rq;