Hi Linus, Stephen had to deal with a couple trivial merge conflicts late in this cycle, please see: https://lkml.org/lkml/2022/7/27/1819 and https://lkml.org/lkml/2022/7/28/302 The following changes since commit 22d0c4080fe49299640d9d6c43154c49794c2825: block: simplify disk_set_independent_access_ranges (2022-06-29 08:36:46 -0600) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-6.0/dm-changes for you to fetch changes up to 9dd1cd3220eca534f2d47afad7ce85f4c40118d8: dm: fix dm-raid crash if md_handle_request() splits bio (2022-07-28 17:36:30 -0400) Please pull, thanks. Mike ---------------------------------------------------------------- - Refactor DM core's mempool allocation so that it clearer by not being split acorss files. - Improve DM core's BLK_STS_DM_REQUEUE and BLK_STS_AGAIN handling. - Optimize DM core's more common bio splitting by eliminating the use of bio cloning with bio_split+bio_chain. Shift that cloning cost to the relatively unlikely dm_io requeue case that only occurs during error handling. Introduces dm_io_rewind() that will clone a bio that reflects the subset of the original bio that must be requeued. - Remove DM core's dm_table_get_num_targets() wrapper and audit all dm_table_get_target() callers. - Fix potential for OOM with DM writecache target by setting a default MAX_WRITEBACK_JOBS (set to 256MiB or 1/16 of total system memory, whichever is smaller). - Fix DM writecache target's stats that are reported through DM-specific table info. - Fix use-after-free crash in dm_sm_register_threshold_callback(). - Refine DM core's Persistent Reservation handling in preparation for broader work Mike Christie is doing to add compatibility with Microsoft Windows Failover Cluster. - Fix various KASAN reported bugs in the DM raid target. - Fix DM raid target crash due to md_handle_request() bio splitting that recurses to block core without properly initializing the bio's bi_dev. - Fix some code comment typos and fix some Documentation formatting. ---------------------------------------------------------------- Bagas Sanjaya (1): Documentation: dm writecache: Render status list as list Christoph Hellwig (2): dm: unexport dm_get_reserved_rq_based_ios dm: refactor dm_md_mempool allocation JeongHyeon Lee (1): dm verity: fix checkpatch close brace error Jiang Jian (1): dm raid: remove redundant "the" in parse_raid_params() comment Luo Meng (1): dm thin: fix use-after-free crash in dm_sm_register_threshold_callback Mauro Carvalho Chehab (1): Documentation: dm writecache: add blank line before optional parameters Mike Christie (4): dm: Allow dm_call_pr to be used for path searches dm: Start pr_reserve from the same starting path dm: Fix PR release handling for non All Registrants dm: Start pr_preempt from the same starting path Mike Snitzer (5): dm table: remove dm_table_get_num_targets() wrapper dm table: audit all dm_table_get_target() callers dm table: rename dm_target variable in dm_table_add_target() dm: return early from dm_pr_call() if DM device is suspended dm: fix dm-raid crash if md_handle_request() splits bio Mikulas Patocka (8): dm writecache: set a default MAX_WRITEBACK_JOBS dm kcopyd: use __GFP_HIGHMEM when allocating pages dm writecache: return void from functions dm writecache: count number of blocks read, not number of read bios dm writecache: count number of blocks written, not number of write bios dm writecache: count number of blocks discarded, not number of discard bios dm raid: fix address sanitizer warning in raid_status dm raid: fix address sanitizer warning in raid_resume Ming Lei (3): dm: improve BLK_STS_DM_REQUEUE and BLK_STS_AGAIN handling dm: add dm_bio_rewind() API to DM core dm: add two stage requeue mechanism Steven Lung (1): dm cache: fix typo in 2 comment blocks Zhang Jiaming (1): dm snapshot: fix typo in snapshot_map() comment .../admin-guide/device-mapper/writecache.rst | 18 +- drivers/md/Makefile | 2 +- drivers/md/dm-cache-metadata.h | 2 +- drivers/md/dm-cache-target.c | 2 +- drivers/md/dm-core.h | 23 +- drivers/md/dm-ima.c | 5 +- drivers/md/dm-io-rewind.c | 166 ++++++++ drivers/md/dm-ioctl.c | 6 +- drivers/md/dm-kcopyd.c | 2 +- drivers/md/dm-raid.c | 7 +- drivers/md/dm-rq.c | 1 - drivers/md/dm-snap.c | 2 +- drivers/md/dm-table.c | 318 +++++++------- drivers/md/dm-thin-metadata.c | 7 +- drivers/md/dm-thin.c | 4 +- drivers/md/dm-verity-target.c | 7 +- drivers/md/dm-writecache.c | 43 +- drivers/md/dm-zone.c | 7 +- drivers/md/dm.c | 462 +++++++++++++-------- drivers/md/dm.h | 4 - include/linux/device-mapper.h | 7 +- include/uapi/linux/dm-ioctl.h | 4 +- 22 files changed, 694 insertions(+), 405 deletions(-) create mode 100644 drivers/md/dm-io-rewind.c