From: fanyong Date: Sun, 1 Oct 2006 16:38:23 +0000 (+0000) Subject: Fix oops when umount with identity upcall. X-Git-Tag: v1_8_0_110~486^2~739 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7198ed014705d6f79e8fab55332622bc69fef174;p=fs%2Flustre-release.git Fix oops when umount with identity upcall. --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 2aeee54..54e9b51 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -2177,10 +2177,11 @@ static int mdt_intent_getattr(enum mdt_it_code opcode, ldlm_rep->lock_policy_res2 = 0; if (!mdt_get_disposition(ldlm_rep, DISP_LOOKUP_POS) || ldlm_rep->lock_policy_res2) { - GOTO(out, rc = ELDLM_LOCK_ABORTED); + GOTO(out_ucred, rc = ELDLM_LOCK_ABORTED); } rc = mdt_intent_lock_replace(info, lockp, new_lock, lhc, flags); +out_ucred: mdt_exit_ucred(info); GOTO(out, rc); out: