From: Yan, Zheng Date: Tue, 1 Apr 2014 12:34:18 +0000 (+0800) Subject: ceph: don't grabs open file reference for aborted request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48193012873e341f08de48304e32d0499b96c60b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ceph: don't grabs open file reference for aborted request Signed-off-by: Yan, Zheng --- diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index c9f25670e312..0b0728e5be2d 100644 --- a/fs/ceph/inode.c +++ b/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) {