From 7198ed014705d6f79e8fab55332622bc69fef174 Mon Sep 17 00:00:00 2001 From: fanyong Date: Sun, 1 Oct 2006 16:38:23 +0000 Subject: [PATCH] Fix oops when umount with identity upcall. --- lustre/mdt/mdt_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 1.8.3.1