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