]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix fuse client hang because its pipe to mds is not ok 25903/head
authorIvanGuan <yunfei.guan@xtaotech.com>
Fri, 4 Jan 2019 04:22:27 +0000 (12:22 +0800)
committerPrashant D <pdhange@redhat.com>
Thu, 10 Jan 2019 22:48:31 +0000 (17:48 -0500)
commit15419c92cbdf08eef839b50e69adda509b5a85bc
tree465d1e59ba4fede1c636eecaea1415a677821d4a
parent30fcb440bcf4f65ce0ca5ef7d9c4f3a6cc9342bb
client: fix fuse client hang because its pipe to mds is not ok

If fuse client session had been killed by mds and the mds daemon restart
or hot-standby switch happens right away but the client did not receive
any message from monitor due to network or other whatever reason untill
the mds become active again.Thus cause client didn't do closed_mds_session
lead the seession still is STATE_OPEN but client can't send any message to
mds because its pipe is not ok.So we should close the stale session so that
it can be reopened again.

Fixes: http://tracker.ceph.com/issues/36079
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
(cherry picked from commit 0e137de26e85942f8b40f7b13e564bd4c31b37f9)

Conflicts:
src/client/Client.cc : Resolved in handle_mds_map
src/client/Client.cc
src/mds/MDSMap.h