From: Mike Snitzer <snitzer@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: dm-devel@redhat.com, linux-block@vger.kernel.org, Alasdair G Kergon <agk@redhat.com>, Bagas Sanjaya <bagasdotme@gmail.com>, Christoph Hellwig <hch@lst.de>, JeongHyeon Lee <jhs2.lee@samsung.com>, Jiang Jian <jiangjian@cdjrlc.com>, Luo Meng <luomeng12@huawei.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Mike Christie <michael.christie@oracle.com>, Mikulas Patocka <mpatocka@redhat.com>, Ming Lei <ming.lei@redhat.com>, Steven Lung <1030steven@gmail.com>, Zhang Jiaming <jiaming@nfschina.com> Subject: [git pull] device mapper changes for 6.0 Date: Mon, 1 Aug 2022 14:58:49 -0400 [thread overview] Message-ID: <YugiaQ1TO+vT1FQ5@redhat.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Mike Snitzer <snitzer@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: JeongHyeon Lee <jhs2.lee@samsung.com>, Steven Lung <1030steven@gmail.com>, Zhang Jiaming <jiaming@nfschina.com>, Jiang Jian <jiangjian@cdjrlc.com>, Ming Lei <ming.lei@redhat.com>, linux-block@vger.kernel.org, dm-devel@redhat.com, Mikulas Patocka <mpatocka@redhat.com>, Mike Christie <michael.christie@oracle.com>, Bagas Sanjaya <bagasdotme@gmail.com>, Luo Meng <luomeng12@huawei.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Christoph Hellwig <hch@lst.de>, Alasdair G Kergon <agk@redhat.com> Subject: [dm-devel] [git pull] device mapper changes for 6.0 Date: Mon, 1 Aug 2022 14:58:49 -0400 [thread overview] Message-ID: <YugiaQ1TO+vT1FQ5@redhat.com> (raw) 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 -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel
next reply other threads:[~2022-08-01 18:58 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-01 18:58 Mike Snitzer [this message] 2022-08-01 18:58 ` [dm-devel] [git pull] device mapper changes for 6.0 Mike Snitzer 2022-08-02 21:30 ` pr-tracker-bot 2022-08-02 21:30 ` [dm-devel] " pr-tracker-bot 2022-08-05 19:10 ` [git pull] Additional " Mike Snitzer 2022-08-05 19:10 ` [dm-devel] " Mike Snitzer 2022-08-06 18:09 ` Linus Torvalds 2022-08-06 18:09 ` [dm-devel] " Linus Torvalds 2022-08-06 18:16 ` Linus Torvalds 2022-08-06 18:16 ` [dm-devel] " Linus Torvalds 2022-08-06 18:30 ` Mike Snitzer 2022-08-06 18:30 ` [dm-devel] " Mike Snitzer 2022-08-06 18:36 ` Linus Torvalds 2022-08-06 18:36 ` [dm-devel] " Linus Torvalds 2022-08-07 7:37 ` Milan Broz 2022-08-07 7:37 ` [dm-devel] " Milan Broz 2022-08-07 18:14 ` Mike Snitzer 2022-08-07 18:14 ` [dm-devel] " Mike Snitzer 2022-08-07 19:53 ` Milan Broz 2022-08-07 19:53 ` [dm-devel] " Milan Broz 2022-08-06 18:19 ` pr-tracker-bot 2022-08-06 18:19 ` pr-tracker-bot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=YugiaQ1TO+vT1FQ5@redhat.com \ --to=snitzer@kernel.org \ --cc=1030steven@gmail.com \ --cc=agk@redhat.com \ --cc=bagasdotme@gmail.com \ --cc=dm-devel@redhat.com \ --cc=hch@lst.de \ --cc=jhs2.lee@samsung.com \ --cc=jiaming@nfschina.com \ --cc=jiangjian@cdjrlc.com \ --cc=linux-block@vger.kernel.org \ --cc=luomeng12@huawei.com \ --cc=mchehab@kernel.org \ --cc=michael.christie@oracle.com \ --cc=ming.lei@redhat.com \ --cc=mpatocka@redhat.com \ --cc=torvalds@linux-foundation.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.