Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6767964ybf; Fri, 6 Mar 2020 04:14:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vv+ThlGozT+2yOQ8qD/4gqV1UYZYu5EYuIt4KSNr0mAcvH0XeE/3j1DGOuhzAfGWu4/8wSh X-Received: by 2002:a9d:649a:: with SMTP id g26mr2282705otl.266.1583496861979; Fri, 06 Mar 2020 04:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583496861; cv=none; d=google.com; s=arc-20160816; b=tazgI5Tvs8nLWRGQmAAYLy6e7Uh1vOyMQbAhuMjyUhSzO4AwEo8NvxkyuZWc0cYHyt t83uuJaVmefeUOOIT3l4OYAJI2D1PdBEMZ+cR/7qdkqHbepWh5QOX2MtM7im+lEabdkO dYX3G77hJMOjzBiz6nyile8iDv++E2R9JW4tm7a8npCW7gFz7BYMIDgKFP2N7F3rjFaw D5V/rHBeJJzTlXh9iWv1y382XOctE6r++BcM/4fSCXDwn98J9hsfy1aeJ0A+sn2p/TWK rUs37OSQxXfPv74+x10ooCThXQbAhnOk19JIucPgwWxJaCrrKwhg94gJs94yoJ8mVwgG abgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Ec6O0U50XisBvDU+zLMDPrjbmdXVGBQcQus7xQFNq70=; b=vsJvVcnjY/gxqjvK9FnROo+bZYoI3+OoXh0haAfkWTHcuF/uOtO/hjjnTM5pHlXKQX T+4AFM3M6cNplsQOxWe9cHpDEUOeIH8lT5T4BGhGZzVIeEiJc9OEInK+xyh9grBtYJSB ERBOqOpkuDuOpN395wCymrTg4z/u9/eZbew4XrltBpOgxmittu6F71aT1iTdKjl6jt4Q Uv31hs/x7/swGLo7Gc7mPfeKr/EJ87PjRKhAP5aJe3p412fq35zc2DK5z6Y7iL1XlIqN wjFpZL8hob8v7aNefxH68L2C2uFSLeSUgaTPB+1q1zF+TgV0PCZYot9YiGb/jH/aJH1i rK1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wwv10ATU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si1333510otn.225.2020.03.06.04.14.10; Fri, 06 Mar 2020 04:14:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wwv10ATU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgCFMNn (ORCPT + 99 others); Fri, 6 Mar 2020 07:13:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:41882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCFMNn (ORCPT ); Fri, 6 Mar 2020 07:13:43 -0500 Received: from tleilax.poochiereds.net (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B82D2072D; Fri, 6 Mar 2020 12:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583496823; bh=qrjGOZLa4Lp6Zr15HcoiifExkEM//CEZFS/Eyg7eolE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Wwv10ATU0KcOHrfRY1pSKnH/t9BjEtwdk4f1JMQQtjcEgRN2M30AC5L+FF1dvdXcN Ol18A62LgESFeW9iUyQuEnqK0ABevGygQrS+UINMKguF+etrW/ctxPZXuCDz+7FhDq HbmGpAEIfxZUOpIUuz+QoctO1X0ILQXDRjxaoiic= Message-ID: Subject: Re: [PATCH] fs/ceph: return errcode in __get_parent(). From: Jeff Layton To: Qiujun Huang Cc: sage@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 06 Mar 2020 07:13:41 -0500 In-Reply-To: <1583458460-31917-1-git-send-email-hqjagain@gmail.com> References: <1583458460-31917-1-git-send-email-hqjagain@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-03-06 at 09:34 +0800, Qiujun Huang wrote: > return real errcode when it's different from ENOENT. > > Signed-off-by: Qiujun Huang > --- > fs/ceph/export.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/fs/ceph/export.c b/fs/ceph/export.c > index b6bfa94..79dc068 100644 > --- a/fs/ceph/export.c > +++ b/fs/ceph/export.c > @@ -315,6 +315,11 @@ static struct dentry *__get_parent(struct super_block *sb, > > req->r_num_caps = 1; > err = ceph_mdsc_do_request(mdsc, NULL, req); > + if (err) { > + ceph_mdsc_put_request(req); > + return ERR_PTR(err); > + } > + > inode = req->r_target_inode; > if (inode) > ihold(inode); Looks good! Merged into the ceph-client/testing branch and should make 5.7. Thanks for the patch! -- Jeff Layton