From: wang di Date: Sat, 25 Jul 2015 10:09:36 +0000 (-0700) Subject: LU-6906 mgc: IR log failure should not stop mount X-Git-Tag: 2.7.58~33 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F15728%2F3;p=fs%2Flustre-release.git LU-6906 mgc: IR log failure should not stop mount If clients or other targets can not get IR config lock or lock, the mount should continue, instead of failing. Because timeout mechanism will handle the recovery anyway. Signed-off-by: wang di Change-Id: Ie717cb363180907b510593ee4a6caaec6f07a5f3 Reviewed-on: http://review.whamcloud.com/15728 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index 01be9e2..1b537f6 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -1974,8 +1974,16 @@ restart: if (cld_is_recover(cld)) { rc = 0; /* this is not a fatal error for recover log */ - if (rcl == 0) + if (rcl == 0) { rc = mgc_process_recover_log(mgc, cld); + if (rc != 0) { + CERROR("%s: recover log %s failed: rc = %d" + "not fatal.\n", mgc->obd_name, + cld->cld_logname, rc); + rc = 0; + cld->cld_lostlock = 1; + } + } } else { rc = mgc_process_cfg_log(mgc, cld, rcl != 0); }