* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, Whamcloud, Inc.
+ * Copyright (c) 2011, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
int rc;
ENTRY;
- check_res_locked(res);
- LASSERT(cfs_list_empty(&res->lr_converting));
+ LASSERT(lock->l_granted_mode != lock->l_req_mode);
+ check_res_locked(res);
+ LASSERT(cfs_list_empty(&res->lr_converting));
if (!first_enq) {
LASSERT(work_list != NULL);