]> Gentwo Git Trees - linux/.git/commit
blk-zoned: Move code from disk_zone_wplug_add_bio() into its caller
authorBart Van Assche <bvanassche@acm.org>
Tue, 11 Nov 2025 23:29:02 +0000 (15:29 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Nov 2025 21:05:23 +0000 (14:05 -0700)
commitf233339188cd9b1a985fd8410d5811e920fdd4ef
tree0aa1599a24fdfd666016f66640ad11a091b5ea2f
parentfaa3be1a61bfaace4c2bd57434de7b13347f9f31
blk-zoned: Move code from disk_zone_wplug_add_bio() into its caller

Move the following code into the only caller of disk_zone_wplug_add_bio():
 - The code for clearing the REQ_NOWAIT flag.
 - The code that sets the BLK_ZONE_WPLUG_PLUGGED flag.
 - The disk_zone_wplug_schedule_bio_work() call.

This patch moves all code that is related to REQ_NOWAIT or to bio
scheduling into a single function. Additionally, the 'schedule_bio_work'
variable is removed. No functionality has been changed.

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlmoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c