]> git.baikalelectronics.ru Git - kernel.git/commit
block: optimise blk_flush_plug_list
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 20 Oct 2021 14:41:18 +0000 (16:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 15:56:11 +0000 (09:56 -0600)
commit28c2745e3d53ef7c376604562f5b83f7f37a4f5c
treec5962f255a3720ac58dc845d28bb200f03eadb15
parent6e5e9a258215403f117b256d8520c114aea4a59b
block: optimise blk_flush_plug_list

Don't call flush_plug_callbacks if there are no plug callbacks.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
[hch: split from a larger patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211020144119.142582-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c