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)
commit87c0fded852ae20bddb7833da6ead082404de86a
tree8e33c3001f2fa9d0a7230ff2c191bace737da699
parent1001354ca34179f3db924eb66672442a173147dc
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