[dm-devel] [PATCH 1/5] dm-multipath: Do not call pg_init twice
Hannes Reinecke
hare at suse.de
Fri Jan 31 09:10:40 UTC 2014
When pg_init is running we shouldn't be calling the same
routine twice; we need to wait for the first pg_init to
complete.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
drivers/md/dm-mpath.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 6eb9dc9..d45290a 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -261,6 +261,9 @@ static void __pg_init_all_paths(struct multipath *m)
struct pgpath *pgpath;
unsigned long pg_init_delay = 0;
+ if (m->pg_init_in_progress || m->pg_init_disabled)
+ return;
+
m->pg_init_count++;
m->pg_init_required = 0;
if (m->pg_init_delay_retry)
--
1.7.12.4
More information about the dm-devel
mailing list