[PATCH 10/11] 11-dm-mpath.rules: make label names more intuitive

2024-03-24 Thread Martin Wilck
The labels "dont_activate" and "scan_import" denote the same code line. Remove "dont_activate". Improve two misleading label names. Substitutions: dont_activate -> scan_import force_activation -> check_mpath_ready mpath_action -> check_mpath_unchanged Signed-off-by: Martin Wilck ---

[PATCH 09/11] 11-dm-mpath.rules: simplify PATH_FAILED case

2024-03-24 Thread Martin Wilck
This combination of a GOTO and a simple rule can be combined into a single rule. Signed-off-by: Martin Wilck --- multipath/11-dm-mpath.rules.in | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/multipath/11-dm-mpath.rules.in b/multipath/11-dm-mpath.rules.in index

[PATCH 11/11] kpartx.rules: ignore DM_SUSPENDED

2024-03-24 Thread Martin Wilck
DM_SUSPENDED=1 implies DM_UDEV_DISABLE_OTHER_RULES_FLAG=1, no need to check it again. The DM_NOSCAN check needs to remain in order to keep compatibility with dm rules v2. Signed-off-by: Martin Wilck --- kpartx/kpartx.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 06/11] 11-dm-mpath.rules: don't import properties with new 13-dm-disk.rules

2024-03-24 Thread Martin Wilck
With the late changes to 13-dm-disk.rules, we don't need to import any blkid-generated properties from the udev database, because they will be imported later. Except for ID_FS_TYPE, this actually holds since lvm2 commit 94f77a4 ("udev: import previous results of blkid when in suspended state"),

[PATCH 07/11] 11-dm-mpath.rules: replace DM_SUSPENDED by .DM_SUSPENDED

2024-03-24 Thread Martin Wilck
With the late changes to the device mapper rules, DM_SUSPENDED is not exported any more. Use .DM_SUSPENDED instead. Note that although 11-dm-mpath.rules is not a part of lvm2, it can be considered as part of the device-mapper layer (everything before 13-dm-disk.rules can), and is thus allowed to

[PATCH 08/11] 11-dm-mpath.rules: replace DM_NOSCAN by .DM_NOSCAN

2024-03-24 Thread Martin Wilck
We don't need to restore DM_NOSCAN from the db anymore, so we can rename it to .DM_NOSCAN, making it a temporary property. Signed-off-by: Martin Wilck --- multipath/11-dm-mpath.rules.in | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/multipath/11-dm-mpath.rules.in

[PATCH 05/11] 11-dm-mpath.rules: adapt coldplug event handling ro 10-dm.rules update

2024-03-24 Thread Martin Wilck
With late late patches for 10-dm.rules, DM_UDEV_DISABLE_OTHER_RULES_FLAG is never restored from the udev db. Thus we don't need to clear it here any more for coldplug events. Also, we must use .DM_SUSPENDED instead of DM_SUSPENDED as input flag with the v3 rule set (other occurences of

[PATCH 02/11] 11-dm-mpath.rules: don't import DM_NOSCAN from udev db

2024-03-24 Thread Martin Wilck
DM_NOSCAN is our "output" flag for 13-dm-disk.rules, and it should be treated the same way as DM_UDEV_DISABLE_OTHER_RULES_FLAG, which isn't imported from the udev database. The state that we need to remember is MPATH_DEVICE_READY, which we've already imported above, and we will set the "output"

[PATCH 04/11] 11-dm-mpath.rules: adapt MPATH_DEVICE_READY=0 logic to 10-dm.rules update

2024-03-24 Thread Martin Wilck
With the late patches for 10-dm.rules, DM_UDEV_DISABLE_OTHER_RULES_FLAG isn't restored from the udev database any more, so we don't need to restore the flag to its original state before it is saved to the db. Signed-off-by: Martin Wilck --- multipath/11-dm-mpath.rules.in | 20

[PATCH 03/11] 11-dm-mpath.rules: don't import ID_FS_VERSION from udev db

2024-03-24 Thread Martin Wilck
Use the same set of properties to import as 13-dm-disk.rules. ID_FS_VERSION isn't used in any udev rule I am aware of. Signed-off-by: Martin Wilck --- multipath/11-dm-mpath.rules.in | 1 - 1 file changed, 1 deletion(-) diff --git a/multipath/11-dm-mpath.rules.in

[PATCH 01/11] 11-dm-mpath.rules: don't set MPATH_DEVICE_READY=0 for suspended devices

2024-03-24 Thread Martin Wilck
MPATH_DEVICE_READY is an internal property, not to be consumed by later rules. It means that there are no usable paths. Being suspended is a different, independent property of a map. Don't set MPATH_DEVICE_READY=0 for suspended devices. Signed-off-by: Martin Wilck ---

[PATCH 00/11] multipath udev rules changes for dm rules V3

2024-03-24 Thread Martin Wilck
This patch set adapts the multipath rules to the pending changes for device mapper rules that update DM_UDEV_RULES_VSN to 3, and applies some additional clean-ups to the rules files. Comments welcome. Martin Wilck (11): 11-dm-mpath.rules: don't set MPATH_DEVICE_READY=0 for suspended

Patch "dm: address indent/space issues" has been added to the 6.1-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm: address indent/space issues to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm io: Support IO priority" has been added to the 6.1-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm io: Support IO priority to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: align the outgoing bio in integrity_recheck" has been added to the 6.1-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: align the outgoing bio in integrity_recheck to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: fix a memory leak when rechecking the data" has been added to the 6.1-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: fix a memory leak when rechecking the data to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: align the outgoing bio in integrity_recheck" has been added to the 6.6-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: align the outgoing bio in integrity_recheck to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm io: Support IO priority" has been added to the 6.6-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm io: Support IO priority to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: fix a memory leak when rechecking the data" has been added to the 6.6-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: fix a memory leak when rechecking the data to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: align the outgoing bio in integrity_recheck" has been added to the 6.7-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: align the outgoing bio in integrity_recheck to the 6.7-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm io: Support IO priority" has been added to the 6.7-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm io: Support IO priority to the 6.7-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: fix a memory leak when rechecking the data" has been added to the 6.7-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: fix a memory leak when rechecking the data to the 6.7-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm io: Support IO priority" has been added to the 6.8-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm io: Support IO priority to the 6.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: align the outgoing bio in integrity_recheck" has been added to the 6.8-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: align the outgoing bio in integrity_recheck to the 6.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "dm-integrity: fix a memory leak when rechecking the data" has been added to the 6.8-stable tree

2024-03-24 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled dm-integrity: fix a memory leak when rechecking the data to the 6.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Re: block: fail unaligned bio from submit_bio_noacct()

2024-03-24 Thread Ming Lei
On Thu, Mar 21, 2024 at 08:39:06PM -0600, Keith Busch wrote: > On Fri, Mar 22, 2024 at 10:08:11AM +0800, Ming Lei wrote: > > On Thu, Mar 21, 2024 at 06:01:41PM +0100, Mikulas Patocka wrote: > > > I would change it to > > > > > > if (unlikely(((bi_iter.bi_sector | bio_sectors(bio)) & > > >