diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-27 09:17:45 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-28 12:55:41 -0700 |
commit | 3bd58143bafc56dbc07f4f085e4d7e018d332674 (patch) | |
tree | 46957a1a015cd412677851bc426fbdb92e92113b /fs/ceph/locks.c | |
parent | fd7b95cd1b58171a0b931b2063729a032bec4ac2 (diff) | |
download | linux-3bd58143bafc56dbc07f4f085e4d7e018d332674.tar.bz2 |
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>
Diffstat (limited to 'fs/ceph/locks.c')
-rw-r--r-- | fs/ceph/locks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/locks.c b/fs/ceph/locks.c index d94ba0df9f4d..191398852a2e 100644 --- a/fs/ceph/locks.c +++ b/fs/ceph/locks.c @@ -45,6 +45,7 @@ static int ceph_lock_message(u8 lock_type, u16 operation, struct file *file, 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) |