linux/Documentation/block
Christoph Hellwig 1122c0c1cc block: move cache control settings out of queue->flags
Move the cache control settings into the queue_limits so that the flags
can be set atomically with the device queue frozen.

Add new features and flags field for the driver set flags, and internal
(usually sysfs-controlled) flags in the block layer.  Note that we'll
eventually remove enough field from queue_limits to bring it back to the
previous size.

The disable flag is inverted compared to the previous meaning, which
means it now survives a rescan, similar to the max_sectors and
max_discard_sectors user limits.

The FLUSH and FUA flags are now inherited by blk_stack_limits, which
simplified the code in dm a lot, but also causes a slight behavior
change in that dm-switch and dm-unstripe now advertise a write cache
despite setting num_flush_bios to 0.  The I/O path will handle this
gracefully, but as far as I can tell the lack of num_flush_bios
and thus flush support is a pre-existing data integrity bug in those
targets that really needs fixing, after which a non-zero num_flush_bios
should be required in dm for targets that map to underlying devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240617060532.127975-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-06-19 07:58:28 -06:00
..
bfq-iosched.rst docs: block/bfq: describe per-device weight 2021-06-16 11:31:24 -06:00
biovecs.rst mm/page_io: introduce bio_first_folio_all() 2023-08-18 10:12:45 -07:00
blk-mq.rst docs: block: blk-mq.rst: correct places -> place 2023-09-22 05:30:21 -06:00
cmdline-partition.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
data-integrity.rst block: move integrity information into queue_limits 2024-06-14 10:20:07 -06:00
deadline-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
index.rst Documentation/block: drop the request.rst file 2023-05-12 11:04:58 -06:00
inline-encryption.rst blk-crypto: remove blk_crypto_insert_cloned_request() 2023-03-16 09:35:09 -06:00
ioprio.rst Documentation: block: ioprio: Update schedulers 2024-01-18 08:21:14 -07:00
kyber-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
null_blk.rst null_blk: add module parameters for 4 options 2022-08-02 17:14:50 -06:00
pr.rst Documentation: block: eliminate duplicated word 2020-07-13 09:44:05 -06:00
stat.rst docs: block: fix stat.rst document error 2021-06-04 11:23:36 -06:00
switching-sched.rst Documenation: switching-sched: Remove notes about elevator argument 2019-09-03 08:04:02 -06:00
ublk.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
writeback_cache_control.rst block: move cache control settings out of queue->flags 2024-06-19 07:58:28 -06:00