[dm-devel] [PATCH 2/4] libmultipath/discovery: modify NVMe path states

Hannes Reinecke hare at suse.de
Fri Sep 15 06:30:28 UTC 2017


The NVMe path states 'resetting' and 'reconnecting' indicate that
the controller could not talk to the namespace, which translates
into a path down state, not a path pending state.
Path pending should only be used for short lived intermediate states
like 'new' or 'deleting'.

Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 libmultipath/discovery.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 95c138b..a880f4b 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -1449,8 +1449,7 @@ path_offline (struct path * pp)
 		}
 		pp->offline = 0;
 		if (!strncmp(buff, "new", 3) ||
-		    !strncmp(buff, "reconnecting", 12) ||
-		    !strncmp(buff, "resetting", 9))
+		    !strncmp(buff, "deleting", 8))
 			return PATH_PENDING;
 		else if (!strncmp(buff, "live", 4))
 			return PATH_UP;
-- 
1.8.5.6




More information about the dm-devel mailing list