Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5059162pjb; Mon, 27 Jul 2020 11:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSwWf/4LLqXJd3Bmu5KpWd2UpWN5zWfEw2J1BT0iD0E2gVA5Zh/DTi+80zU1hlS1G1DUAt X-Received: by 2002:a05:6402:2379:: with SMTP id a25mr11662115eda.180.1595875914307; Mon, 27 Jul 2020 11:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595875914; cv=none; d=google.com; s=arc-20160816; b=uaHYS47qOTm42myNEo5Ojd51c+55FwsGLhTws5QEdZ0569NQgIqRk0EgiyYwdc5mqp +OSQkeqmytQqK+DKrGGslo+KVq9MVNvJ+bGHQBWtqBajxI8t6oUyvXYSdAW6quHR+l15 fv+j29ySooGyl3CyoPiWNsMZJuZmDQKw42q9ZRUo8EGFTF/MVSqrzDZ+yNtI7avH9LJ6 kqerd7BPytkJN9Eu1FrsKrbRbM7c2uAsT5mGPfRUtpOPH1nTvB+sePL25Y7lrVbVYy05 wiKZGScO8BLROIYElKsfz9Tx9VNdKkV+37t9l1cTcgePSJ9ZEOFs+6Z6Hb4KFooIWDp4 mg5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:cc:to:from :date:subject:ironport-sdr:dkim-signature; bh=/cBDHdYCAXlViX573ZuBBDuzPl3N86QXDlOplOxSvlc=; b=y6Y13+rvCZkvAn+s7Q2dXjc2ToHTVO1n7JsManAuEP6rUZA1SM4OkpmqsGghHNF9F6 YYy2KU4FO6klZfvDpl7sH8Z8q/hQ3EGNNeKyuqujEa4RJSg0IW+BiSzHT7vdx8jn0kp/ 5IGZ4fyNV05cVIRZYnbtiSU5K22+U+VDBB33UFJUJajReCuFeoMM2azEvZeZY6SNJOI1 slGXgFWke9y+nfOHqYUm6ZdkFzod9yWVxJhU6CISSpyMhhxDp0Sxjg8LXGVNwhn44L7o siHtAdxWIyax7CKvdFcNnjr/fAkbuuA/rX6JUc5/OOb7awaRvnrDqPtvHDVQ1EB6qWX/ ONZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=eAehBTMq; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si6160811edx.430.2020.07.27.11.51.20; Mon, 27 Jul 2020 11:51:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=eAehBTMq; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732310AbgG0Qe3 (ORCPT + 99 others); Mon, 27 Jul 2020 12:34:29 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:14326 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729315AbgG0Qe2 (ORCPT ); Mon, 27 Jul 2020 12:34:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1595867668; x=1627403668; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=/cBDHdYCAXlViX573ZuBBDuzPl3N86QXDlOplOxSvlc=; b=eAehBTMqV1iclpK+c9K7JGCantcitNucymlc7F2lcwhyBbEpf+3Ts7NB xgSmkmqvyJTfbFBXAIbmoXUcEVvsDl/l6l4Lf/9tUhI2FijygdK9Pi4Z3 0ludKyc96nhflcCsOudSgGmT4xASvqDArgoK4fvWQWVI7Kb/Rz4BN/0le o=; IronPort-SDR: KDiFI1pNEGnY8t3HNcLEToLYtj7UZ4Oh78FSRrmex7JTaXxo6nCr9fOCvGquTPc5k0HQjEkyYK kYCelvRK+KyA== X-IronPort-AV: E=Sophos;i="5.75,402,1589241600"; d="scan'208";a="44320302" Subject: Re: [PATCH] NFSv4.2: Fix an error code in nfs4_xattr_cache_init() Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 27 Jul 2020 16:34:26 +0000 Received: from EX13MTAUEB002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-97fdccfd.us-east-1.amazon.com (Postfix) with ESMTPS id EA093A056B; Mon, 27 Jul 2020 16:34:24 +0000 (UTC) Received: from EX13D11UEB002.ant.amazon.com (10.43.60.63) by EX13MTAUEB002.ant.amazon.com (10.43.60.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 27 Jul 2020 16:34:24 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX13D11UEB002.ant.amazon.com (10.43.60.63) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 27 Jul 2020 16:34:24 +0000 Received: from dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (172.23.141.97) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 27 Jul 2020 16:34:23 +0000 Received: by dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (Postfix, from userid 6262777) id C7F31C13F8; Mon, 27 Jul 2020 16:34:23 +0000 (UTC) Date: Mon, 27 Jul 2020 16:34:23 +0000 From: Frank van der Linden To: Dan Carpenter CC: Trond Myklebust , Anna Schumaker , , Message-ID: <20200727163423.GA7563@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com> References: <20200727112344.GH389488@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200727112344.GH389488@mwanda> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Dan, On Mon, Jul 27, 2020 at 02:23:44PM +0300, Dan Carpenter wrote: > > > This should return -ENOMEM on failure instead of success. > > Fixes: 95ad37f90c33 ("NFSv4.2: add client side xattr caching.") > Signed-off-by: Dan Carpenter > --- > --- > fs/nfs/nfs42xattr.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/nfs/nfs42xattr.c b/fs/nfs/nfs42xattr.c > index 23fdab977a2a..e75c4bb70266 100644 > --- a/fs/nfs/nfs42xattr.c > +++ b/fs/nfs/nfs42xattr.c > @@ -1040,8 +1040,10 @@ int __init nfs4_xattr_cache_init(void) > goto out2; > > nfs4_xattr_cache_wq = alloc_workqueue("nfs4_xattr", WQ_MEM_RECLAIM, 0); > - if (nfs4_xattr_cache_wq == NULL) > + if (nfs4_xattr_cache_wq == NULL) { > + ret = -ENOMEM; > goto out1; > + } > > ret = register_shrinker(&nfs4_xattr_cache_shrinker); > if (ret) > -- > 2.27.0 > Thanks for catching that one. Since this is against linux-next via Trond, I assume Trond will add it to his tree (right?) In any case: Reviewed-by: Frank van der Linden - Frank