* run the callback. */
if (!lock->l_readers && !lock->l_writers &&
(lock->l_flags & LDLM_FL_CBPENDING)) {
- if (!lock->l_resource->lr_namespace->ns_client) {
- CERROR("LDLM_FL_CBPENDING set on non-local lock!\n");
- LBUG();
- }
+ if (!lock->l_resource->lr_namespace->ns_client &&
+ lock->l_export)
+ CERROR("FL_CBPENDING set on non-local lock--just a "
+ "warning\n");
LDLM_DEBUG(lock, "final decref done on cbpending lock");
l_unlock(&lock->l_resource->lr_namespace->ns_lock);
int err;
if (ns->ns_client) {
- CERROR("Trying to cancel local lock\n");
+ CERROR("Trying to enqueue local lock in a shadow namespace\n");
LBUG();
}
- lock = ldlm_lock_create(ns, parent_lockh, res_id, type, mode, data, data_len);
+ lock = ldlm_lock_create(ns, parent_lockh, res_id, type, mode, data,
+ data_len);
if (!lock)
GOTO(out_nolock, err = -ENOMEM);
LDLM_DEBUG(lock, "client-side local enqueue handler, new lock created");