]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: Drop pointless unlock-lock pair
authorJan Kara <jack@suse.cz>
Fri, 1 Apr 2022 10:27:46 +0000 (12:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:34:22 +0000 (19:34 -0600)
commit211a76556f7756562b87c13b4489787bb2076460
treeb800fa4c33774c09d0b12521811aecc8f7e6dca4
parent3d5bf53e21bd8de5599d1337135cf51571d4c510
bfq: Drop pointless unlock-lock pair

In bfq_insert_request() we unlock bfqd->lock only to call
trace_block_rq_insert() and then lock bfqd->lock again. This is really
pointless since tracing is disabled if we really care about performance
and even if the tracepoint is enabled, it is a quick call.

CC: stable@vger.kernel.org
Tested-by: "yukuai (C)" <yukuai3@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220401102752.8599-5-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c