and cancellation. Do one cancel_for_export at disconnect time, and
another at export destroy time to catch stragglers.
exports created by lctl don't have an import */
if (exp->exp_imp_reverse != NULL)
class_destroy_import(exp->exp_imp_reverse);
+
+ /* We cancel locks at disconnect time, but this will catch any locks
+ * granted in a race with recovery-induced disconnect. */
+ ldlm_cancel_locks_for_export(exp);
}
/*