Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1861209imm; Sat, 12 May 2018 01:33:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQ1FcoPwFH4jt1FIQAVOAOGak1+SHkbHXi5WuswdUY+oRSnKEJGZzZkZWHgWjJKbjFhum+ X-Received: by 2002:a63:7159:: with SMTP id b25-v6mr1978011pgn.194.1526113996623; Sat, 12 May 2018 01:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526113996; cv=none; d=google.com; s=arc-20160816; b=JTF7q95cNeKMM78EhpFBNk90aMgEmJSFMqS9jrvBelLF7OWiLcyAUGZTvHK/A/zKXC m9f7vfU9AzXuHVowPIlSV0bTDiWoj+X56VVHJOyCYhhIdSz5WEWEk+1aXwPOQzf6uo// xEAUiatVAuBa5NbZoN6bSB6/pS+uTVYBbzKntlQyv026rgXRs0lyMNE9pPxoOIHc+XAQ DrejKglWex35I8ITJYSl8vPECvwF1UJkmAENafhXTwNwOMceyf+47gEkUA98/5Zjz7dZ YrENvsI5pMAKxHjWnPnjq212OGECIkvuDR5/jUIt+ENuSis6R2unHdVdHwHMUvFrLvZx 2A4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=dVtPV99/aVyv9kw4fg345Mjn2ReZzfIE9xCxuYH2fRw=; b=qjWDcKLVaB9h3O/TmeUKfPQBD7LDKswqI2Me9fG6oHhfQTmNx6KnfJZYp5LThz8EMq Hg/pDpYHnTN6g7OfcHwskNsDjR0Myj3WwZy5QjC2v9P7QK9LTaSSU1sNo2l8qZ/zQtES vC9ecPjYH1qlRLLvMVdJf9i7N8AZ3A9gm6lCfE7rX8/zwFWAz5hgLvpfleAKfU7iKAT+ oozfeHNFF25FApefDGcqqXxDMxJoGi3A+6cwG1zfI+EApgk1Z5smByUVH2FlpiuLecDS oae0d8l75oWccs1vjMyFFiv9+3DVCvc0Hpbd48rg0KZniM0yt8diNM+zhVlMCB+8WmB5 Bvog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18-v6si4017369pgd.143.2018.05.12.01.33.01; Sat, 12 May 2018 01:33:16 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750915AbeELIcy convert rfc822-to-8bit (ORCPT + 99 others); Sat, 12 May 2018 04:32:54 -0400 Received: from mga03.intel.com ([134.134.136.65]:41999 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbeELIcw (ORCPT ); Sat, 12 May 2018 04:32:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 May 2018 01:32:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,391,1520924400"; d="scan'208";a="38741805" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 12 May 2018 01:32:51 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 12 May 2018 01:32:51 -0700 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.12]) by FMSMSX155.amr.corp.intel.com ([169.254.5.91]) with mapi id 14.03.0319.002; Sat, 12 May 2018 01:32:51 -0700 From: "Dilger, Andreas" To: Christophe JAILLET CC: "Drokin, Oleg" , James Simmons , Greg Kroah-Hartman , NeilBrown , "aastha.gupta4104@gmail.com" , "santhameena13@gmail.com" , "devel@driverdev.osuosl.org" , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lustre-devel@lists.lustre.org" Subject: Re: [lustre-devel] [PATCH] staging: lustre: Fix an error handling path in 'client_common_fill_super()' Thread-Topic: [lustre-devel] [PATCH] staging: lustre: Fix an error handling path in 'client_common_fill_super()' Thread-Index: AQHT6bsXYp6G7L/s/kaRQD/naUwLdaQsOYGA Date: Sat, 12 May 2018 08:32:50 +0000 Message-ID: <21FD761A-0604-41B2-869C-1A1276732D3B@intel.com> References: <20180512063305.7339-1-christophe.jaillet@wanadoo.fr> In-Reply-To: <20180512063305.7339-1-christophe.jaillet@wanadoo.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.11.24] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 12, 2018, at 00:33, Christophe JAILLET wrote: > > According to error handling path before and after this one, we should go > to 'out_md_fid' here, instead of 'out_md', if 'obd_connect()' fails. > > Signed-off-by: Christophe JAILLET Good catch. Reviewed-by: Andreas Dilger > --- > The last goto 'out_lock_cn_cb' looks spurious but is correct. > In case of error, 'd_make_root()' performs a 'iput()', so skipping it in > the error handling path lokks fine to me. > --- > drivers/staging/lustre/lustre/llite/llite_lib.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c > index 60dbe888e336..83eb2da2c9ad 100644 > --- a/drivers/staging/lustre/lustre/llite/llite_lib.c > +++ b/drivers/staging/lustre/lustre/llite/llite_lib.c > @@ -400,11 +400,11 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt) > LCONSOLE_ERROR_MSG(0x150, > "An OST (dt %s) is performing recovery, of which this client is not a part. Please wait for recovery to complete, abort, or time out.\n", > dt); > - goto out_md; > + goto out_md_fid; > } else if (err) { > CERROR("%s: Cannot connect to %s: rc = %d\n", > sbi->ll_dt_exp->exp_obd->obd_name, dt, err); > - goto out_md; > + goto out_md_fid; > } > > sbi->ll_dt_exp->exp_connect_data = *data; > -- > 2.17.0 > > _______________________________________________ > lustre-devel mailing list > lustre-devel@lists.lustre.org > http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation