]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/raid10: Atomic write support
authorJohn Garry <john.g.garry@oracle.com>
Mon, 18 Nov 2024 10:50:18 +0000 (10:50 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Nov 2024 17:30:02 +0000 (10:30 -0700)
commita1d9b4fd42d93f46c11e7e9d919a55a3f6ca6126
treec49badbf5fdf1e11292bc0eca2969394e23f6b2a
parentf2a38abf5f1c5aeb3be8e9f4d3d815c867fff7ca
md/raid10: Atomic write support

Set BLK_FEAT_ATOMIC_WRITES_STACKED to enable atomic writes.

For an attempt to atomic write to a region which has bad blocks, error
the write as we just cannot do this. It is unlikely to find devices which
support atomic writes and bad blocks.

Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241118105018.1870052-6-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid10.c