OSDN Git Service

block: don't bloat enter_queue with percpu_ref
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Oct 2021 21:24:13 +0000 (22:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:08:06 +0000 (08:08 -0600)
commit1497a51a3287959a9eb74e0432203ba3e2dc7347
treec06311f1b12ee00fc09f38faedfa7ce9c2107683
parent478eb72b815f33734723867ff236d96afa418d69
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 <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c