MAX_LOCK_DEPTH
static struct lock_class_key default_group_class[MAX_LOCK_DEPTH];
struct held_lock held_locks[MAX_LOCK_DEPTH];
if (DEBUG_LOCKS_WARN_ON(depth >= MAX_LOCK_DEPTH))
if (unlikely(curr->lockdep_depth >= MAX_LOCK_DEPTH)) {
curr->lockdep_depth, MAX_LOCK_DEPTH);
memset(current->held_locks, 0, MAX_LOCK_DEPTH*sizeof(struct held_lock));
pr_info("... MAX_LOCK_DEPTH: %lu\n", MAX_LOCK_DEPTH);
unsigned int limit = MAX_LOCK_DEPTH / 2;