#include "ldlm_internal.h"
#ifdef HAVE_SERVER_SUPPORT
+
/**
* Determine if the lock is compatible with all locks on the queue.
*
ENTRY;
- LASSERT(lock->l_granted_mode != lock->l_req_mode);
+ LASSERT(!ldlm_is_granted(lock));
check_res_locked(res);
if (intention == LDLM_PROCESS_RESCAN) {