dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0070-udev-Ignore-change-event-for-imsm.patch

d805ba
From e1b92ee0de26576a33b20c9dd6ef6bd8cab8e283 Mon Sep 17 00:00:00 2001
d805ba
From: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
d805ba
Date: Wed, 8 Apr 2020 16:44:52 +0200
d805ba
Subject: [RHEL7.9 PATCH 70/77] udev: Ignore change event for imsm
d805ba
d805ba
When adding a device to a container mdadm has to close its file
d805ba
descriptor before sysfs_add_disk(). This generates change event.
d805ba
There is race possibility because metadata is already written and other
d805ba
-I process can place drive differently. As a result device can be added
d805ba
to two containers simultaneously.
d805ba
From IMSM perspective there is no need to react for change event. IMSM
d805ba
doesn't support stacked devices.
d805ba
d805ba
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
d805ba
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
d805ba
---
d805ba
 udev-md-raid-assembly.rules | 2 +-
d805ba
 1 file changed, 1 insertion(+), 1 deletion(-)
d805ba
d805ba
diff --git a/udev-md-raid-assembly.rules b/udev-md-raid-assembly.rules
d805ba
index 9f055ed..d668cdd 100644
d805ba
--- a/udev-md-raid-assembly.rules
d805ba
+++ b/udev-md-raid-assembly.rules
d805ba
@@ -23,7 +23,7 @@ IMPORT{cmdline}="nodmraid"
d805ba
 ENV{nodmraid}=="?*", GOTO="md_inc_end"
d805ba
 ENV{ID_FS_TYPE}=="ddf_raid_member", GOTO="md_inc"
d805ba
 ENV{noiswmd}=="?*", GOTO="md_inc_end"
d805ba
-ENV{ID_FS_TYPE}=="isw_raid_member", GOTO="md_inc"
d805ba
+ENV{ID_FS_TYPE}=="isw_raid_member", ACTION!="change", GOTO="md_inc"
d805ba
 GOTO="md_inc_end"
d805ba
 
d805ba
 LABEL="md_inc"
d805ba
-- 
d805ba
2.7.5
d805ba