]> www.infradead.org Git - users/dwmw2/linux.git/commit
block: Add common atomic writes enable flag
authorJohn Garry <john.g.garry@oracle.com>
Thu, 16 Jan 2025 17:02:54 +0000 (17:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Jan 2025 20:13:54 +0000 (13:13 -0700)
commit6a7e17b22062c84a111d7073c67cc677c4190f32
tree026dc093971a5d76320eb40b9a8e456224756928
parent63492a2d7e2826f94e524e551b1abb3b32c55bca
block: Add common atomic writes enable flag

Currently only stacked devices need to explicitly enable atomic writes by
setting BLK_FEAT_ATOMIC_WRITES_STACKED flag.

This does not work well for device mapper stacking devices, as there many
sets of limits are stacked and what is the 'bottom' and 'top' device can
swapped. This means that BLK_FEAT_ATOMIC_WRITES_STACKED needs to be set
for many queue limits, which is messy.

Generalize enabling atomic writes enabling by ensuring that all devices
must explicitly set a flag - that includes NVMe, SCSI sd, and md raid.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20250116170301.474130-2-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/nvme/host/core.c
drivers/scsi/sd.c
include/linux/blkdev.h