Revert "ceph: update issue_seq on cap grant"

This reverts commit d91f2438d881514e4a923fd786dbd94b764a9440.

The intent of issue_seq is to distinguish between mds->client messages that
(re)create the cap and those that do not, which means we should _only_ be
updating that value in the create paths. By updating it in handle_cap_grant,
we reset it to zero, which then breaks release.

The larger question is what workload/problem made me think it should be
updated here...

Signed-off-by: Sage Weil <sage@newdream.net>

Sage Weil 2f56f56a efa4c120

+3 -5
+3 -5
fs/ceph/caps.c
··· 2273 2273 { 2274 2274 struct ceph_inode_info *ci = ceph_inode(inode); 2275 2275 int mds = session->s_mds; 2276 - unsigned seq = le32_to_cpu(grant->seq); 2277 - unsigned issue_seq = le32_to_cpu(grant->issue_seq); 2276 + int seq = le32_to_cpu(grant->seq); 2278 2277 int newcaps = le32_to_cpu(grant->caps); 2279 2278 int issued, implemented, used, wanted, dirty; 2280 2279 u64 size = le64_to_cpu(grant->size); ··· 2285 2286 int revoked_rdcache = 0; 2286 2287 int queue_invalidate = 0; 2287 2288 2288 - dout("handle_cap_grant inode %p cap %p mds%d seq %u/%u %s\n", 2289 - inode, cap, mds, seq, issue_seq, ceph_cap_string(newcaps)); 2289 + dout("handle_cap_grant inode %p cap %p mds%d seq %d %s\n", 2290 + inode, cap, mds, seq, ceph_cap_string(newcaps)); 2290 2291 dout(" size %llu max_size %llu, i_size %llu\n", size, max_size, 2291 2292 inode->i_size); 2292 2293 ··· 2382 2383 } 2383 2384 2384 2385 cap->seq = seq; 2385 - cap->issue_seq = issue_seq; 2386 2386 2387 2387 /* file layout may have changed */ 2388 2388 ci->i_layout = grant->layout;