ceph: simplify caps revocation, fix for multimds
authorSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 20:20:33 +0000 (13:20 -0700)
committerSage Weil <sage@newdream.net>
Mon, 2 Aug 2010 03:11:39 +0000 (20:11 -0700)
commit3b454c4945c756686e91d77eeefac80cb5d21baf
treebd55ec2db3c234cf2fb1eebcf1ace3e4b9e2bc35
parent38e8883ee31667d901feb9106f4863af35948c91
ceph: simplify caps revocation, fix for multimds

The caps revocation should either initiate writeback, invalidateion, or
call check_caps to ack or do the dirty work.  The primary question is
whether we can get away with only checking the auth cap or whether all
caps need to be checked.

The old code was doing...something else.  At the very least, revocations
from non-auth MDSs could break by triggering the "check auth cap only"
case.

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