]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: block RPC requests before unregistering watch during close
authorJason Dillaman <dillaman@redhat.com>
Thu, 18 May 2017 20:54:06 +0000 (16:54 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 19 May 2017 15:24:38 +0000 (11:24 -0400)
commit13adcac42967e58a7663b42b2c9d217f7c36c88c
treee43d2abac80e68367a4cf6e189206d62492be130
parent95937bcd42abbc7d840bb06dc65cb1de6ef6c5e0
librbd: block RPC requests before unregistering watch during close

The watch should be released after exclusive lock is released to
avoid a potential race condition which would result in the
client being blacklisted by a peer.

Fixes: http://tracker.ceph.com/issues/19970
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CloseRequest.cc
src/librbd/image/CloseRequest.h