ceph: cap revocation fixes
authorSage Weil <sage@newdream.net>
Tue, 9 Feb 2010 21:41:18 +0000 (13:41 -0800)
committerSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 19:48:52 +0000 (11:48 -0800)
commitcbd03635913a86afb7c2cfc0058932956b05b51e
tree5938439c41509d72af379fcfc770e37fb5527847
parent29065a513aa4c7e4b46b77cbcd25f814a4ca0bfe
ceph: cap revocation fixes

Try to invalidate pages in ceph_check_caps() if FILE_CACHE is being
revoked.  If we fail, queue an immediate async invalidate if FILE_CACHE
is being revoked.  (If it's not being revoked, we just queue the caps
for later evaluation later, as per the old behavior.)

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