]> 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)
commitcf690de3e7c2bec8d177faec835bc4d9801d1983
tree8e33c3001f2fa9d0a7230ff2c191bace737da699
parenta245803230f587f66ceddc152f3504b2a960aac2
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