]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef323e7ff4dc45da6875ca3783f05c6598fcbe9b
tree79f203946794f37fe21e7eb6ba4c9971b6f8c16c
parentcf690de3e7c2bec8d177faec835bc4d9801d1983
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