]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: don't wait for the lock forever if blacklisted
authorIlya Dryomov <idryomov@gmail.com>
Thu, 29 Sep 2016 11:41:05 +0000 (13:41 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 15 Oct 2016 21:21:56 +0000 (23:21 +0200)
commit42505e6bbc176befaa74ac75b4fa1979d0531006
tree8e33c3001f2fa9d0a7230ff2c191bace737da699
parent1df7eb1ca477b826c461b694d57789b4da41844a
rbd: don't wait for the lock forever if blacklisted

-EBLACKLISTED from __rbd_register_watch() means that our ceph_client
got blacklisted - we won't be able to restore the watch and reacquire
the lock.  Wake up and fail all outstanding requests waiting for the
lock and arrange for all new requests that require the lock to fail
immediately.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Mike Christie <mchristi@redhat.com>
drivers/block/rbd.c