]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: use finisher to abort MDS request
authorYan, Zheng <zyan@redhat.com>
Mon, 13 Oct 2014 03:34:18 +0000 (11:34 +0800)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 13 Feb 2015 22:41:09 +0000 (14:41 -0800)
commitf9b6b66b05ddadef043d81676728bf40730ea16c
treeb7719d13ccc19bc26b666b2e16c92a96f75610bd
parentea355e9ca5203b77e6f74ca4a3e39ce23cc86f67
client: use finisher to abort MDS request

When a request is interrupted, libfuse first locks an internal mutex,
then calls the interrupt callback. libfuse need to lock the same mutex
when unregistering interrupt callback. We unregister interrupt callback
while client_lock is locked, so we can't acquiring the client_lock in
the interrupt callback.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 09699454e729592d426aeff5b578697e850af12e)

Conflicts:
src/client/Client.cc
src/client/Client.h

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/client/Client.cc
src/client/Client.h