fs: dlm: fix building without lockdep
authorAlexander Aring <aahringo@redhat.com>
Tue, 22 Nov 2022 14:48:01 +0000 (09:48 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 22 Nov 2022 16:14:26 +0000 (10:14 -0600)
commit7a5e9f1f83e3271a9f05933a80b870fe55ebbb3d
tree065482f5ec3fc034d8c0b5c6d11b8a66a1ee6eb5
parentdbb751ffab0b764720e360efd642ba6bf076d87f
fs: dlm: fix building without lockdep

This patch uses assert_spin_locked() instead of lockdep_is_held()
where it's available to use because lockdep_is_held() is only available
if CONFIG_LOCKDEP is set.

In other cases like lockdep_sock_is_held() we surround it by a
CONFIG_LOCKDEP idef.

Fixes: dbb751ffab0b ("fs: dlm: parallelize lowcomms socket handling")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c