]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/Pipe: do not hold pipe_lock for verify_authorizer()
authorSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 16:55:43 +0000 (09:55 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 23:20:37 +0000 (16:20 -0700)
commit611a06ae6c9cba468db206dfc82ec883c7a394af
tree47162c5f784d69261b41c346d029dc384eaf1b56
parent45bda482fa8a23f4b80d115e29d6f04cb5e226d6
msg/Pipe: do not hold pipe_lock for verify_authorizer()

We shouldn't hold the pipe_lock while doing the ms_verify_authorizer
upcalls.

Fix by unlocking a bit earlier, and verifying our state is still correct
in the failure path.

This regression was introduced by ecab4bb9513385bd765cca23e4e2fadb7ac4bac2.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 723d691f7a1f53888618dfc311868d1988f61f56)

Conflicts:

src/msg/Pipe.cc
src/msg/Pipe.cc