staging: lustre: osc: osc_object_ast_clear() LBUG
authorBobi Jam <bobijam.xu@intel.com>
Sun, 18 Sep 2016 20:38:35 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Sep 2016 08:03:40 +0000 (10:03 +0200)
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 <bobijam.xu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6042
Reviewed-on: http://review.whamcloud.com/13163
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_object.c

index d211d1905e831f2bb1661dde83661fb3c753f6f4..5fc547997c9b013981a66fe3261c04188aabdf94 100644 (file)
@@ -195,7 +195,6 @@ static int osc_object_glimpse(const struct lu_env *env,
 
 static int osc_object_ast_clear(struct ldlm_lock *lock, void *data)
 {
-       LASSERT(lock->l_granted_mode == lock->l_req_mode);
        if (lock->l_ast_data == data)
                lock->l_ast_data = NULL;
        return LDLM_ITER_CONTINUE;