path: root/kernel/kexec.c
diff options
authorMichal Hocko <>2014-08-29 15:18:42 -0700
committerLinus Torvalds <>2014-08-29 16:28:16 -0700
commit7ea8574e5fa31f43d8098a028f12ba6a9c9f3530 (patch)
treeb9209f9a97424e987bd0abe1b22abd2fb0e0da05 /kernel/kexec.c
parent137f8cff505ace6251dc442c7aa973d60c801a79 (diff)
hugetlb_cgroup: use lockdep_assert_held rather than spin_is_locked
spin_lock may be an empty struct for !SMP configurations and so arch_spin_is_locked may return unconditional 0 and trigger the VM_BUG_ON even when the lock is held. Replace spin_is_locked by lockdep_assert_held. We will not BUG anymore but it is questionable whether crashing makes a lot of sense in the uncharge path. Uncharge happens after the last page reference was released so nobody should touch the page and the function doesn't update any shared state except for res counter which uses synchronization of its own. Signed-off-by: Michal Hocko <> Reviewed-by: Aneesh Kumar K.V <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions