rbd: don't retry watch reregistration if header object is gone
authorIlya Dryomov <idryomov@gmail.com>
Thu, 29 Sep 2016 12:23:12 +0000 (14:23 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 15 Oct 2016 21:22:09 +0000 (23:22 +0200)
commit4d73644bc3d76dd161a84e3849c6f2c9c01c4ba7
tree79f203946794f37fe21e7eb6ba4c9971b6f8c16c
parent87c0fded852ae20bddb7833da6ead082404de86a
rbd: don't retry watch reregistration if header object is gone

If the header object gets deleted (perhaps along with the entire pool),
there is no point in attempting to reregister the watch.  Treat this
the same as blacklisting: fail all pending and new I/Os requiring the
lock.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c