From: Pavel Begunkov Date: Tue, 19 Oct 2021 21:24:13 +0000 (+0100) Subject: block: don't bloat enter_queue with percpu_ref X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1497a51a3287959a9eb74e0432203ba3e2dc7347;p=linux.git block: don't bloat enter_queue with percpu_ref percpu_ref_put() are inlined for performance and bloat the binary, we don't care about the fail case of blk_try_enter_queue(), so we can replace it with a call to blk_queue_exit(). Reviewed-by: Chaitanya Kulkarni Reviewed-by: Christoph Hellwig Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/block/blk-core.c b/block/blk-core.c index c1ba34777c6df..88752e51d2b6b 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -404,7 +404,7 @@ static bool blk_try_enter_queue(struct request_queue *q, bool pm) return true; fail_put: - percpu_ref_put(&q->q_usage_counter); + blk_queue_exit(q); fail: rcu_read_unlock(); return false;