commit | 48193012873e341f08de48304e32d0499b96c60b | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.z.yan@intel.com> | Tue Apr 01 20:34:18 2014 +0800 |
committer | Sage Weil <sage@inktank.com> | Fri Apr 04 21:08:25 2014 -0700 |
tree | 1c8ae6c2b521818ee4d8dfbb5a57fa1f0d39fc3e | |
parent | ab866549b3da3eef88e51696bcb24e79f1cc3745 [diff] |
ceph: don't grabs open file reference for aborted request Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index c9f2567..0b0728e 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c
@@ -1112,7 +1112,7 @@ err = fill_inode(in, &rinfo->targeti, NULL, session, req->r_request_started, - (le32_to_cpu(rinfo->head->result) == 0) ? + (!req->r_aborted && rinfo->head->result == 0) ? req->r_fmode : -1, &req->r_caps_reservation); if (err < 0) {