提交 48193012 编写于 作者: Y Yan, Zheng 提交者: Sage Weil

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

Signed-off-by: NYan, Zheng <zheng.z.yan@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册