aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-01-18 12:00:01 -0500
committerSage Weil <sage@newdream.net>2011-01-19 12:23:26 -0500
commit7e57b81c7688c762bc9e775bc83f9fc17946f527 (patch)
treed50dada5f348a9e9137a631e525c63f57e0cb796 /fs/ceph/caps.c
parent088b3f5e9ee2649f5cfc2f08d8ce654e3eeba310 (diff)
ceph: avoid immediate cap check after import
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>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 7def3f5903dd..6b61ded701e1 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -2817,8 +2817,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
2817 case CEPH_CAP_OP_IMPORT: 2817 case CEPH_CAP_OP_IMPORT:
2818 handle_cap_import(mdsc, inode, h, session, 2818 handle_cap_import(mdsc, inode, h, session,
2819 snaptrace, snaptrace_len); 2819 snaptrace, snaptrace_len);
2820 ceph_check_caps(ceph_inode(inode), CHECK_CAPS_NODELAY, 2820 ceph_check_caps(ceph_inode(inode), 0, session);
2821 session);
2822 goto done_unlocked; 2821 goto done_unlocked;
2823 } 2822 }
2824 2823