ceph: do not confuse stale and dead (unreconnected) caps
authorSage Weil <sage@newdream.net>
Mon, 9 Nov 2009 20:05:48 +0000 (12:05 -0800)
committerSage Weil <sage@newdream.net>
Mon, 9 Nov 2009 20:06:07 +0000 (12:06 -0800)
commit685f9a5d14194fc35db73e5e7370740ccc14b64a
tree4c34ac2348149d91ad5e08cd105207810f0afdc9
parentfb690390e305ea51e1883b105c7d3c52d7100ba5
ceph: do not confuse stale and dead (unreconnected) caps

We were using the cap_gen to track both stale caps (caps that timed out
due to temporarily losing touch with the mds) and dead caps that did not
reconnect after an MDS failure.  Introduce a recon_gen counter to track
reconnections to restarted MDSs and kill dead caps based on that instead.

Rename gen to cap_gen while we're at it to make it more clear which is
which.

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