]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: attempt mds reconnect if mds closes our session
authorSage Weil <sage@newdream.net>
Thu, 18 Mar 2010 20:59:12 +0000 (13:59 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:36 +0000 (15:25 -0700)
commitdc82b05ff08078b8e870fe0751a26ee9a6864d04
tree2ef57fc14bff89309081eacde33f6cbaf767e867
parent37eae60c8be7696427999ec8b36e034a72892ae3
ceph: attempt mds reconnect if mds closes our session

Currently, if our session is closed (due to a timeout, or explicit close,
or whatever), we just sit there doing nothing unless/until the MDS
restarts, at which point we try to reconnect.

Change client to attempt an immediate reconnect if our session is closed.

Note that currently the MDS doesn't support this, and our attempt will
fail.  We'll get a session CLOSE, our caps and dirty cap state will be
dropped, and the client will be free to attempt to reconnect.  That's
clearly not as nice as a successful reconnect, but it at least allows us
to try to carry on, and in the future the MDS will support a reconnect
and we will fare better.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c