Skip to content

Commit

Permalink
ceph: avoid immediate cap check after import
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Jan 19, 2011
1 parent 088b3f5 commit 7e57b81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7e57b81

Please sign in to comment.