From: Yang Sheng Date: Wed, 4 Nov 2015 08:36:37 +0000 (+0800) Subject: LU-7115 fld: don't retry for no LWP device X-Git-Tag: 2.9.52~29 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9407629a816feff9f773517f90b615164319642f LU-7115 fld: don't retry for no LWP device Just try again for LWP import since other client import may run into deadloop. Signed-off-by: Yang Sheng Change-Id: If1759b5ad7daa06abe6231669ad92e006ecb3059 Reviewed-on: https://review.whamcloud.com/17041 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: wangdi Reviewed-by: Niu Yawei Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin --- diff --git a/lustre/fld/fld_request.c b/lustre/fld/fld_request.c index aa14278..19b5789 100644 --- a/lustre/fld/fld_request.c +++ b/lustre/fld/fld_request.c @@ -424,6 +424,7 @@ again: if (imp->imp_state != LUSTRE_IMP_CLOSED && !imp->imp_deactive && imp->imp_connect_flags_orig & OBD_CONNECT_MDS_MDS && + OCD_HAS_FLAG(&imp->imp_connect_data, LIGHTWEIGHT) && rc != -ENOTSUPP) { /* Since LWP is not replayable, so it will keep * trying unless umount happens or the remote