Hi all,

After merging the tip tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

drivers/block/rbd.c: In function 'wake_lock_waiters':
drivers/block/rbd.c:3933:2: error: implicit declaration of function 
'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_write'? 
[-Werror=implicit-function-declaration]
  lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  lockdep_assert_held_write

Caused by commit

  9ffbe8ac05db ("locking/lockdep: Rename lockdep_assert_held_exclusive() -> 
lockdep_assert_held_write()")

interacting with commits

  637cd060537d ("rbd: new exclusive lock wait/wake code")
  a2b1da09793d ("rbd: lock should be quiesced on reacquire")

from the ceph tree.

I have added the following merge fix patch for today.

From: Stephen Rothwell <s...@canb.auug.org.au>
Date: Tue, 9 Jul 2019 16:46:12 +1000
Subject: [PATCH] rbd: fix up for lockdep_assert_held_exclusive rename

Signed-off-by: Stephen Rothwell <s...@canb.auug.org.au>
---
 drivers/block/rbd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 723c3ef4bd59..02216fbdb854 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3930,7 +3930,7 @@ static void wake_lock_waiters(struct rbd_device *rbd_dev, 
int result)
        struct rbd_img_request *img_req;
 
        dout("%s rbd_dev %p result %d\n", __func__, rbd_dev, result);
-       lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem);
+       lockdep_assert_held_write(&rbd_dev->lock_rwsem);
 
        cancel_delayed_work(&rbd_dev->lock_dwork);
        if (!completion_done(&rbd_dev->acquire_wait)) {
@@ -4209,7 +4209,7 @@ static bool rbd_quiesce_lock(struct rbd_device *rbd_dev)
        bool need_wait;
 
        dout("%s rbd_dev %p\n", __func__, rbd_dev);
-       lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem);
+       lockdep_assert_held_write(&rbd_dev->lock_rwsem);
 
        if (rbd_dev->lock_state != RBD_LOCK_STATE_LOCKED)
                return false;
-- 
2.20.1

-- 
Cheers,
Stephen Rothwell

Attachment: pgp8OswOM4OZq.pgp
Description: OpenPGP digital signature

Reply via email to