瀏覽代碼

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

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Yan, Zheng 11 年之前
父節點
當前提交
4819301287
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ceph/inode.c

+ 1 - 1
fs/ceph/inode.c

@@ -1112,7 +1112,7 @@ retry_lookup:
 
 		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) {