Blame SOURCES/0131-UPBZ-1259831-lock-retry.patch
|
|
38852f |
---
|
|
|
38852f |
multipathd/main.c | 11 ++++++++++-
|
|
|
38852f |
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
38852f |
|
|
|
38852f |
Index: multipath-tools-130222/multipathd/main.c
|
|
|
38852f |
===================================================================
|
|
|
38852f |
--- multipath-tools-130222.orig/multipathd/main.c
|
|
|
38852f |
+++ multipath-tools-130222/multipathd/main.c
|
|
|
38852f |
@@ -462,6 +462,7 @@ ev_add_path (struct path * pp, struct ve
|
|
|
38852f |
char params[PARAMS_SIZE] = {0};
|
|
|
38852f |
int retries = 3;
|
|
|
38852f |
int start_waiter = 0;
|
|
|
38852f |
+ int ret;
|
|
|
38852f |
|
|
|
38852f |
/*
|
|
|
38852f |
* need path UID to go any further
|
|
|
38852f |
@@ -540,7 +541,15 @@ rescan:
|
|
|
38852f |
/*
|
|
|
38852f |
* reload the map for the multipath mapped device
|
|
|
38852f |
*/
|
|
|
38852f |
- if (domap(mpp, params) <= 0) {
|
|
|
38852f |
+retry:
|
|
|
38852f |
+ ret = domap(mpp, params);
|
|
|
38852f |
+ if (ret <= 0) {
|
|
|
38852f |
+ if (ret < 0 && retries-- > 0) {
|
|
|
38852f |
+ condlog(0, "%s: retry domap for addition of new "
|
|
|
38852f |
+ "path %s", mpp->alias, pp->dev);
|
|
|
38852f |
+ sleep(1);
|
|
|
38852f |
+ goto retry;
|
|
|
38852f |
+ }
|
|
|
38852f |
condlog(0, "%s: failed in domap for addition of new "
|
|
|
38852f |
"path %s", mpp->alias, pp->dev);
|
|
|
38852f |
/*
|