summaryrefslogtreecommitdiff
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-10-19 08:08:13 +0300
committerShaohua Li <shli@fb.com>2017-11-02 07:32:22 +0300
commitefa4b77b00b56138fb7e68d2fe8fd1b3c15cd503 (patch)
treeb7b1b88aa4aacba1811efe5d495733008622b484 /drivers/md/md.h
parentf6eca2d43ed694ab8124dd24c88277f7eca93b7d (diff)
downloadlinux-efa4b77b00b56138fb7e68d2fe8fd1b3c15cd503.tar.xz
md: use lockdep_assert_held
lockdep_assert_held is a better way to assert lock held, and it works for UP. Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 998b4ce1498f..7d6bcf0eba0c 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -500,11 +500,6 @@ static inline void mddev_lock_nointr(struct mddev *mddev)
mutex_lock(&mddev->reconfig_mutex);
}
-static inline int mddev_is_locked(struct mddev *mddev)
-{
- return mutex_is_locked(&mddev->reconfig_mutex);
-}
-
static inline int mddev_trylock(struct mddev *mddev)
{
return mutex_trylock(&mddev->reconfig_mutex);