]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify blk_mq_plug
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:38 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:25 +0000 (06:46 -0600)
commitb96f652c51cc93ef23999f8dd7857d5e6827efd4
tree54decf2da049481ffceed99c6a50542a0d5eb319
parent8f45e15e62578d59e836d63564ede2d1aa8b7811
block: simplify blk_mq_plug

Drop the unused q argument, and invert the check to move the exception
into a branch and the regular path as the normal return.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-merge.c
block/blk-mq.c
block/blk-mq.h