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

Set BLK_FEAT_ATOMIC_WRITES_STACKED to enable atomic writes. All other
stacked device request queue limits should automatically be set properly.
With regards to atomic write max bytes limit, this will be set at
hw_max_sectors and this is limited by the stripe width, which we want.

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-4-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid0.c