ceph: avoid immediate cap check after import
authorSage Weil <sage@newdream.net>
Tue, 18 Jan 2011 17:00:01 +0000 (09:00 -0800)
committerSage Weil <sage@newdream.net>
Wed, 19 Jan 2011 17:23:26 +0000 (09:23 -0800)
The NODELAY flag avoids the heuristics that delay cap (issued/wanted)
release.  There's no reason for that after we import a cap, and it kills
whatever benefit we get from those delays.

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

index 7def3f5903dd5b64f68c32f8409318460a2875de..6b61ded701e10a23b61199b91536f2178c629275 100644 (file)
@@ -2817,8 +2817,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
        case CEPH_CAP_OP_IMPORT:
                handle_cap_import(mdsc, inode, h, session,
                                  snaptrace, snaptrace_len);
-               ceph_check_caps(ceph_inode(inode), CHECK_CAPS_NODELAY,
-                               session);
+               ceph_check_caps(ceph_inode(inode), 0, session);
                goto done_unlocked;
        }