]> www.infradead.org Git - users/dwmw2/linux.git/commit
md/raid1: Atomic write support
authorJohn Garry <john.g.garry@oracle.com>
Mon, 18 Nov 2024 10:50:17 +0000 (10:50 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Nov 2024 17:30:02 +0000 (10:30 -0700)
commitf2a38abf5f1c5aeb3be8e9f4d3d815c867fff7ca
tree0df6df556de8b497f0ee3388611144e08d2fd7f8
parentfa6fec82811bc6ebd3c4337ae4dae36c802c0fc1
md/raid1: 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-5-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid1.c