]> git.ipfire.org Git - thirdparty/linux.git/commit
block: Clear BIO_EMULATES_ZONE_APPEND flag on BIO completion
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 11 Jun 2025 00:59:15 +0000 (09:59 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jun 2025 12:42:07 +0000 (06:42 -0600)
commitf705d33c2f0353039d03e5d6f18f70467d86080e
tree601d916f32df9d52e78d51dbac577e283a54c294
parentff20c516485efbeb5c32bcb6aa5a24f73774185b
block: Clear BIO_EMULATES_ZONE_APPEND flag on BIO completion

When blk_zone_write_plug_bio_endio() is called for a regular write BIO
used to emulate a zone append operation, that is, a BIO flagged with
BIO_EMULATES_ZONE_APPEND, the BIO operation code is restored to the
original REQ_OP_ZONE_APPEND but the BIO_EMULATES_ZONE_APPEND flag is not
cleared. Clear it to fully return the BIO to its orginal definition.

Fixes: 9b1ce7f0c6f8 ("block: Implement zone append emulation")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250611005915.89843-1-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c