From: Bobi Jam Date: Mon, 22 Dec 2014 04:36:59 +0000 (+0800) Subject: LU-6042 osc: osc_object_ast_clear() LBUG X-Git-Tag: 2.6.92~4 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=4311cdaa832fc4a444d48e50174dde09f21146d2;hp=2aa189790ca95f0f4f1d32fadea3269080091b02 LU-6042 osc: osc_object_ast_clear() LBUG An OSC object could be destroyed with AGL locks waiting for granted, so we'd get rid of the osc_object_ast_clear() assertion that its dlm locks all getting granted. Signed-off-by: Bobi Jam Change-Id: I47f6c9a5f5b57291e8452713af417310f25a5e03 Reviewed-on: http://review.whamcloud.com/13163 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- diff --git a/lustre/osc/osc_object.c b/lustre/osc/osc_object.c index bd26422..b883641 100644 --- a/lustre/osc/osc_object.c +++ b/lustre/osc/osc_object.c @@ -209,7 +209,6 @@ static int osc_object_ast_clear(struct ldlm_lock *lock, void *data) { ENTRY; - LASSERT(lock->l_granted_mode == lock->l_req_mode); if (lock->l_ast_data == data) lock->l_ast_data = NULL; RETURN(LDLM_ITER_CONTINUE);