]> git.baikalelectronics.ru Git - kernel.git/commit
block: add rationale for not using blk_mq_plug() when applicable
authorPankaj Raghav <p.raghav@samsung.com>
Thu, 29 Sep 2022 14:41:41 +0000 (16:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Sep 2022 15:02:49 +0000 (09:02 -0600)
commit8b79cfcc90af9309b00e890210a63c8e1e5b2d62
treee52fbc5b96f7f3922a4b0c8d00bcf6da8f176613
parentf58b4aca16662049abb2c94066d05c8e16e82108
block: add rationale for not using blk_mq_plug() when applicable

There are two places in the block layer at the moment where
blk_mq_plug() helper could be used instead of directly accessing the
plug from struct current. In both these cases, directly accessing the plug
should not have any consequences for zoned devices.

Make the intent explicit by adding comments instead of introducing unwanted
checks with blk_mq_plug() helper.[1]

[1] https://lore.kernel.org/linux-block/f6e54907-1035-2b2c-6387-ed178be05ccb@kernel.dk/

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Suggested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20220929144141.140077-1-p.raghav@samsung.com
[axboe: fixup multi-line comment style]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c