]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ceph: update issue_seq on cap grant
authorSage Weil <sage@newdream.net>
Wed, 22 Sep 2010 18:16:00 +0000 (11:16 -0700)
committerSage Weil <sage@newdream.net>
Thu, 7 Oct 2010 15:01:50 +0000 (08:01 -0700)
commitd91f2438d881514e4a923fd786dbd94b764a9440
treed0419a4c2132687c58e54a18938ab2359794700d
parent21b559de56695d36b3f0819b7e2454737db254f8
ceph: update issue_seq on cap grant

We need to update the issue_seq on any grant operation, be it via an MDS
reply or a separate grant message.  The update in the grant path was
missing.  This broke cap release for inodes in which the MDS sent an
explicit grant message that was not soon after followed by a successful
MDS reply on the same inode.

Also fix the signedness on seq locals.

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