]> www.infradead.org Git - users/hch/block.git/commit
block: move the stable_writes flag to queue_limits
authorChristoph Hellwig <hch@lst.de>
Sat, 8 Jun 2024 07:06:22 +0000 (09:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 17 Jun 2024 06:03:17 +0000 (08:03 +0200)
commitc8c09c273b35dbcc3e8122ac0a194157b3a6b76d
tree6e73a57a319bd465d82c5bfee7de2bfed943da0b
parent6d91234c45ed5b0dfdda2d6831164b637e108ada
 block: move the stable_writes flag to queue_limits

Move the stable_writes flag into the queue_limits feature field so that
it can be set atomically with the queue frozen.

The flag is now inherited by blk_stack_limits, which greatly simplifies
the code in dm, and fixed md which previously did not pass on the flag
set on lower devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
12 files changed:
block/blk-mq-debugfs.c
block/blk-sysfs.c
drivers/block/drbd/drbd_main.c
drivers/block/rbd.c
drivers/block/zram/zram_drv.c
drivers/md/dm-table.c
drivers/md/raid5.c
drivers/mmc/core/queue.c
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/scsi/iscsi_tcp.c
include/linux/blkdev.h