X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fimport.c;h=b513815dd6319227267fea622de8d3794c53eaa3;hp=ed1b89bca6887443d8ef78be6ccb69009226bbe4;hb=3e5dc84be447e16a84d02dc5b4400bc547c52459;hpb=14de17ad90341e302dfe57a720c225b614caea6a diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c index ed1b89b..b513815 100644 --- a/lustre/ptlrpc/import.c +++ b/lustre/ptlrpc/import.c @@ -1554,12 +1554,15 @@ int ptlrpc_import_recovery_state_machine(struct obd_import *imp) ENTRY; if (imp->imp_state == LUSTRE_IMP_EVICTED) { struct task_struct *task; + u64 connect_flags; deuuidify(obd2cli_tgt(imp->imp_obd), NULL, &target_start, &target_len); + connect_flags = imp->imp_connect_data.ocd_connect_flags; /* Don't care about MGC eviction */ if (strcmp(imp->imp_obd->obd_type->typ_name, - LUSTRE_MGC_NAME) != 0) { + LUSTRE_MGC_NAME) != 0 && + (connect_flags & OBD_CONNECT_LIGHTWEIGHT) == 0) { LCONSOLE_ERROR_MSG(0x167, "%s: This client was evicted " "by %.*s; in progress operations " "using this service will fail.\n",