X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Frecover.c;h=4d5f28bc96fdcfc47c0744a275d959c5569231a9;hp=ab93c45ea7fd74b069ee1b3bb0a75187978365ed;hb=f28353b3d810cfbec018a263556ceac84ab9413e;hpb=48296ee2121855f8b508327c1f50ecd9a6cc7194 diff --git a/lustre/ptlrpc/recover.c b/lustre/ptlrpc/recover.c index ab93c45..4d5f28b 100644 --- a/lustre/ptlrpc/recover.c +++ b/lustre/ptlrpc/recover.c @@ -377,9 +377,8 @@ int ptlrpc_import_in_recovery(struct obd_import *imp) int in_recovery = 1; spin_lock(&imp->imp_lock); - if (imp->imp_state == LUSTRE_IMP_FULL || - imp->imp_state == LUSTRE_IMP_CLOSED || - imp->imp_state == LUSTRE_IMP_DISCON || + if (imp->imp_state <= LUSTRE_IMP_DISCON || + imp->imp_state >= LUSTRE_IMP_FULL || imp->imp_obd->obd_no_recov) in_recovery = 0; spin_unlock(&imp->imp_lock);