commit | 3bd58143bafc56dbc07f4f085e4d7e018d332674 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.z.yan@intel.com> | Sun Apr 27 09:17:45 2014 +0800 |
committer | Sage Weil <sage@inktank.com> | Mon Apr 28 12:55:41 2014 -0700 |
tree | 46957a1a015cd412677851bc426fbdb92e92113b | |
parent | fd7b95cd1b58171a0b931b2063729a032bec4ac2 [diff] [blame] |
ceph: reserve caps for file layout/lock MDS requests Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Sage Weil <sage@inktank.com>
diff --git a/fs/ceph/locks.c b/fs/ceph/locks.c index d94ba0d..1913988 100644 --- a/fs/ceph/locks.c +++ b/fs/ceph/locks.c
@@ -45,6 +45,7 @@ return PTR_ERR(req); req->r_inode = inode; ihold(inode); + req->r_num_caps = 1; /* mds requires start and length rather than start and end */ if (LLONG_MAX == fl->fl_end)