Skip to content
Commit 110fdb44 authored by Pankaj Raghav's avatar Pankaj Raghav Committed by Jens Axboe
Browse files

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: default avatarPankaj Raghav <p.raghav@samsung.com>
Suggested-by: default avatarJens 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: default avatarJens Axboe <axboe@kernel.dk>
parent 8cafdb5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment