device mapper changes for 6.19
Mikulas Patocka
maintainerHi Linus
The following changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:
Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-6.19/dm-changes
for you to fetch changes up to 13ea55ea20176736516b20b9ea2d8cf97dbe74f5:
dm pcache: fix segment info indexing (2025-12-10 19:28:23 +0100)
Please, pull, thanks
Mikulas
----------------------------------------------------------------
small dm code refactoring
fix deadlock when reloading a multipath table
don't warn if IMA_DISABLE_HTABLE is not enabled
test for REQ_ATOMIC in dm_accept_partial_bio()
ignore discard return value
MAINTAINERS: add Benjamin Marzinski as a device mapper maintainer
dm-bufio: align write boundary on physical block size
dm-crypt: use the MD5 library directly
dm-crypt: use folio_nr_pages() instead of shift operation
dm-crypt: enable DM_TARGET_ATOMIC_WRITES
dm-verity: remove log message with shash driver name
dm-verity: use the SHA-256 library directly
dm-verity: use 2-way interleaved SHA-256 hashing when supported
dm-verity: expose corrected block count via status
dm-verity: disable recursive forward error correction
dm-verity: remove useless mempool
dm-mpath: enable DM_TARGET_ATOMIC_WRITES
dm-mpath: simplify the setup_scsi_dh code
dm-ebs: mark full buffer dirty even on partial write
dm-vdo: fix kerneldoc warnings
dm-snapshot: fix 'scheduling while atomic' on real-time kernels
dm-raid: fix possible NULL dereference with undefined raid type
dm raid: add documentation for takeover/reshape raid1 -> raid5 table line examples
dm-log-writes: add missing set_freezable() for freezable kthread
dm-pcache: fixes in indexing code
-----BEGIN PGP SIGNATURE-----
iIoEABYIADIWIQRnH8MwLyZDhyYfesYTAyx9YGnhbQUCaTnD7BQcbXBhdG9ja2FA cmVkaGF0LmNvbQAKCRATAyx9YGnhbS3NAQCfc83GS5i7D4NoOjYP7PNElendmc99 WxsetuFT4dQYKAD/UgistGLf6vQ5LGE8Kp9YWsQ6hb8BgjoKo0mSjwCHQgQ= =C9Du
-----END PGP SIGNATURE-----
----------------------------------------------------------------
Alexey Simakov (1):
dm-raid: fix possible NULL dereference with undefined raid type
Benjamin Marzinski (3):
dm: remove useless md->nr_zones variable
dm: Fix deadlock when reloading a multipath table
dm-mpath: Simplify the setup_scsi_dh code
Chaitanya Kulkarni (1):
dm: ignore discard return value
Dongsheng Yang (1):
dm-pcache: advance slot index before writing slot
Eric Biggers (5):
dm-crypt: Use MD5 library instead of crypto_shash
dm-verity: remove log message with shash driver name
dm-verity: use SHA-256 library for SHA-256
dm-verity: reduce scope of real and wanted digests
dm-verity: use 2-way interleaved SHA-256 hashing when supported
Haotian Zhang (1):
dm log-writes: Add missing set_freezable() for freezable kthread
Heinz Mauelshagen (1):
dm raid: add documentation for takeover/reshape raid1 -> raid5 table line examples
John Garry (1):
dm mpath: enable DM_TARGET_ATOMIC_WRITES
Jon Hunter (1):
dm: Don't warn if IMA_DISABLE_HTABLE is not enabled
Li Chen (2):
dm pcache: fix cache info indexing
dm pcache: fix segment info indexing
Matthew Sakai (1):
dm vdo: fix kerneldoc warnings
Mikulas Patocka (7):
dm-verity: disable recursive forward error correction
dm-verity: remove useless mempool
dm: test for REQ_ATOMIC in dm_accept_partial_bio()
dm-crypt: enable DM_TARGET_ATOMIC_WRITES
dm-bufio: align write boundary on physical block size
MAINTAINERS: add Benjamin Marzinski as a device mapper maintainer
dm-snapshot: fix 'scheduling while atomic' on real-time kernels
Pedro Demarchi Gomes (1):
dm-crypt: use folio_nr_pages() instead of shift operation
Shubhankar Mishra (1):
dm verity fec: Expose corrected block count via status
Uladzislau Rezki (Sony) (1):
dm-ebs: Mark full buffer dirty even on partial write
Vivek BalachandharTN (1):
dm: sysfs: use sysfs_emit() in dm-sysfs.c
.../admin-guide/device-mapper/dm-raid.rst | 80 +++++++- Documentation/admin-guide/device-mapper/verity.rst | 6 +- MAINTAINERS | 1 + drivers/md/Kconfig | 2 + drivers/md/dm-bufio.c | 10 +- drivers/md/dm-core.h | 1 - drivers/md/dm-crypt.c | 117 +++++------- drivers/md/dm-ebs-target.c | 2 +- drivers/md/dm-exception-store.h | 2 +- drivers/md/dm-log-writes.c | 1 + drivers/md/dm-mpath.c | 63 +++---- drivers/md/dm-pcache/cache.c | 13 +- drivers/md/dm-pcache/cache_segment.c | 13 +- drivers/md/dm-raid.c | 2 + drivers/md/dm-snap.c | 73 ++++--- drivers/md/dm-sysfs.c | 8 +- drivers/md/dm-table.c | 4 + drivers/md/dm-thin.c | 19 +- drivers/md/dm-vdo/action-manager.c | 2 +- drivers/md/dm-vdo/admin-state.c | 75 +++++--- drivers/md/dm-vdo/block-map.c | 51 ++++- drivers/md/dm-vdo/completion.c | 5 + drivers/md/dm-vdo/data-vio.c | 34 +++- drivers/md/dm-vdo/dedupe.c | 42 ++--- drivers/md/dm-vdo/dm-vdo-target.c | 5 +- drivers/md/dm-vdo/encodings.c | 26 ++- drivers/md/dm-vdo/flush.c | 6 +- drivers/md/dm-vdo/funnel-workqueue.c | 7 + drivers/md/dm-vdo/io-submitter.c | 26 +-- drivers/md/dm-vdo/logical-zone.c | 20 +- drivers/md/dm-vdo/packer.c | 15 +- drivers/md/dm-vdo/physical-zone.c | 5 +- drivers/md/dm-vdo/recovery-journal.c | 30 +-- drivers/md/dm-vdo/slab-depot.c | 96 ++++++---- drivers/md/dm-vdo/vdo.c | 9 +- drivers/md/dm-vdo/vdo.h | 4 +- drivers/md/dm-vdo/vio.c | 3 +- drivers/md/dm-vdo/vio.h | 6 +- drivers/md/dm-verity-fec.c | 41 ++-- drivers/md/dm-verity-fec.h | 10 +- drivers/md/dm-verity-target.c | 209 +++++++++++++++------ drivers/md/dm-verity.h | 52 +++-- drivers/md/dm-zone.c | 3 - drivers/md/dm.c | 46 +++-- 44 files changed, 761 insertions(+), 484 deletions(-)
Quoted 2 lines · Mikulas Patocka
small dm code refactoring [...]
This is not an explanation of the pull request.
This is just a badly formatted shortlog.
This pull request came in late, and doesn't have a proper explanation, so I'm less than thrilled.
Get me a proper explanation of what has been going on.
Linus
Quoted 5 lines · Linus Torvalds
This pull request came in late, and doesn't have a proper explanation, so I'm less than thrilled.
Get me a proper explanation of what has been going on.
The code has also been recently rebased for some unknown reason that isn't explained
I've pulled it, and written a better explanation for it all, but you are now officially on my shit-list.
That means that next merge window, if you don't do things properly and in a timely manner, I'm just not bothering to pull. Because this is *not* how pull requests are supposed to be done in the kernel.
The two-week merge window is *not* for random unexplained late development.
The two weeks are for *merging*, not for "oh, I have time to rebase code that wasn't ready, but I don't have time to explain any of it".
Linus
Mikulas Patocka
maintainerQuoted 10 lines · Linus Torvalds
Quoted 5 lines · Linus Torvalds
This pull request came in late, and doesn't have a proper explanation, so I'm less than thrilled.
Get me a proper explanation of what has been going on.
The code has also been recently rebased for some unknown reason that isn't explained
I rebased it just before sending it because the kernel test robot found grammatical errors in two commit messages.
Quoted 7 lines
I've pulled it, and written a better explanation for it all, but you are now officially on my shit-list.
That means that next merge window, if you don't do things properly and in a timely manner, I'm just not bothering to pull. Because this is *not* how pull requests are supposed to be done in the kernel.
Quoted 6 lines
The two-week merge window is *not* for random unexplained late development.
The two weeks are for *merging*, not for "oh, I have time to rebase code that wasn't ready, but I don't have time to explain any of it".
Linus
What's your preferred time frame for submitting the device mapper pull request? One week since the merge window starts? Or less than one week?
Mikulas
Quoted 3 lines · Mikulas Patocka
I rebased it just before sending it because the kernel test robot found grammatical errors in two commit messages.
That really isn't a strong enough reason to then rebase things late.
Rebasing is for *important* things, or for early development. Not for the merge window, or at least not without explaining why the tree contains a lot of very recent changes.
Quoted 2 lines
What's your preferred time frame for submitting the device mapper pull request? One week since the merge window starts? Or less than one week?
The code should be ready *BEFORE* the merge window starts. Not "one week after". Not one *HOUR* after.
Lots of people send me their pull requests the week before. This time around I had something like 35 pull requests ready to go for the merge window in my inbox when I released 3.18.
Other people wait for the actual release, so then on the first Monday of the merge window that number had roughly doubled, and that's fairly normal.
Does it *have* to come in that early? No. We have two weeks partly to be able to be flexible. But those two weeks are *not* for development.
They are for me and "it takes time to merge", and they are for other developers for "my goldfish ate my favorite stick bug, and now I'm devastated and an emotional wreck, and it took me some time to get over it".
So people have other things going on in their lives than just kernel development, and two weeks gives some buffer for that.
And sometimes there's some trees that have dependencies where there's a few "I need to go after that other tree" kinds of things, and the two weeks gives some flexibility in that sense.
That last case used to be particularly true back when Andrew Morton didn't use git, so his series depended on other peoples git trees and couldn't use stable git branches where two or more trees shared some common history.
But even with all those reasons for two weeks, the merge window is for things that were ready *before* the merge window started.
Sure, late commits happen because maybe there were fixes that still came in and people notice them and want to deal with fixes asap, and there might be a "one more thing" there, but the merge window is NOT for new development.
And not for random late rebases that aren't explained. When I see lots of recent commits, that just makes me go "what the heck happened here?" exactly because that should *not* be happening. It should have been ready to go.
And as always - you can *explain* things. The merge message should have explanations for what the pull contains, but there can also be notes about why something was slightly off. Like explaining why some unusual late rebase happened.
But note the "unusual". It shouldn't be the pattern.
Basically, if a pull request comes in during the second week, you should have a *reason* for it that you also explain. If it's too personal to explain in public, feel free to just send me a separate private email.
Things happen. We have rules, but at the same time very few rules are black and white. Kernel development is supposed to be pretty flexible
- outside of the "no regression" rules, pretty much all other rules can be bent.
But when the rules are bent, they should at least be explained.
Linus
Mikulas Patocka
maintainerQuoted 70 lines · Linus Torvalds
Quoted 3 lines · Mikulas Patocka
I rebased it just before sending it because the kernel test robot found grammatical errors in two commit messages.
That really isn't a strong enough reason to then rebase things late.
Rebasing is for *important* things, or for early development. Not for the merge window, or at least not without explaining why the tree contains a lot of very recent changes.
Quoted 2 lines
What's your preferred time frame for submitting the device mapper pull request? One week since the merge window starts? Or less than one week?
The code should be ready *BEFORE* the merge window starts. Not "one week after". Not one *HOUR* after.
Lots of people send me their pull requests the week before. This time around I had something like 35 pull requests ready to go for the merge window in my inbox when I released 3.18.
Other people wait for the actual release, so then on the first Monday of the merge window that number had roughly doubled, and that's fairly normal.
Does it *have* to come in that early? No. We have two weeks partly to be able to be flexible. But those two weeks are *not* for development.
They are for me and "it takes time to merge", and they are for other developers for "my goldfish ate my favorite stick bug, and now I'm devastated and an emotional wreck, and it took me some time to get over it".
So people have other things going on in their lives than just kernel development, and two weeks gives some buffer for that.
And sometimes there's some trees that have dependencies where there's a few "I need to go after that other tree" kinds of things, and the two weeks gives some flexibility in that sense.
That last case used to be particularly true back when Andrew Morton didn't use git, so his series depended on other peoples git trees and couldn't use stable git branches where two or more trees shared some common history.
But even with all those reasons for two weeks, the merge window is for things that were ready *before* the merge window started.
Sure, late commits happen because maybe there were fixes that still came in and people notice them and want to deal with fixes asap, and there might be a "one more thing" there, but the merge window is NOT for new development.
And not for random late rebases that aren't explained. When I see lots of recent commits, that just makes me go "what the heck happened here?" exactly because that should *not* be happening. It should have been ready to go.
And as always - you can *explain* things. The merge message should have explanations for what the pull contains, but there can also be notes about why something was slightly off. Like explaining why some unusual late rebase happened.
But note the "unusual". It shouldn't be the pattern.
Basically, if a pull request comes in during the second week, you should have a *reason* for it that you also explain. If it's too personal to explain in public, feel free to just send me a separate private email.
Quoted 8 lines
Things happen. We have rules, but at the same time very few rules are black and white. Kernel development is supposed to be pretty flexible
- outside of the "no regression" rules, pretty much all other rules can be bent.But when the rules are bent, they should at least be explained.
Linus
OK.
I will send the pull request sooner next time and I'll defer patches that come during the merge window.
Mikulas
The pull request you sent on Wed, 10 Dec 2025 20:18:03 +0100 (CET):
The pull request you sent on Wed, 10 Dec 2025 20:18:03 +0100 (CET):
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.gittags/for-6.19/dm-changes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/d358e5254674b70f34c847715ca509e46eb81e6f
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html