]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ceph: don't grabs open file reference for aborted request
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 1 Apr 2014 12:34:18 +0000 (20:34 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:25 +0000 (21:08 -0700)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/inode.c

index c9f25670e3127943c558542847a4d3f84c192816..0b0728e5be2d7cba589a935159b88f9d26f0b2e9 100644 (file)
@@ -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) {