X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fimport.c;h=873d2e29318c2ff853e616234a48545314f89e47;hb=b09afdf57643cbc1c437a42b4babb0837dd19e65;hp=18a0a88e6c582048c457008e3177995e19becf81;hpb=a486ca181d44682187016d41d6922c68474b226d;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c index 18a0a88..873d2e2 100644 --- a/lustre/ptlrpc/import.c +++ b/lustre/ptlrpc/import.c @@ -1788,7 +1788,7 @@ static int ptlrpc_disconnect_idle_interpret(const struct lu_env *env, memset(&imp->imp_remote_handle, 0, sizeof(imp->imp_remote_handle)); /* take our DISCONNECT into account */ - if (atomic_read(&imp->imp_inflight) > 1) { + if (atomic_read(&imp->imp_reqs) > 1) { imp->imp_generation++; imp->imp_initiated_at = imp->imp_generation; import_set_state_nolock(imp, LUSTRE_IMP_NEW);