Commit 48193012 authored by Yan, Zheng's avatar Yan, Zheng Committed by Sage Weil

ceph: don't grabs open file reference for aborted request

Signed-off-by: default avatarYan, Zheng <zheng.z.yan@intel.com>
parent ab866549
......@@ -1112,7 +1112,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment