linux/Documentation/block
Christoph Hellwig c6e56cf6b2 block: move integrity information into queue_limits
Move the integrity information into the queue limits so that it can be
set atomically with other queue limits, and that the sysfs changes to
the read_verify and write_generate flags are properly synchronized.
This also allows to provide a more useful helper to stack the integrity
fields, although it still is separate from the main stacking function
as not all stackable devices want to inherit the integrity settings.
Even with that it greatly simplifies the code in md and dm.

Note that the integrity field is moved as-is into the queue limits.
While there are good arguments for removing the separate blk_integrity
structure, this would cause a lot of churn and might better be done at a
later time if desired.  However the integrity field in the queue_limits
structure is now unconditional so that various ifdefs can be avoided or
replaced with IS_ENABLED().  Given that tiny size of it that seems like
a worthwhile trade off.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240613084839.1044015-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-06-14 10:20:07 -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 ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00