Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp508169imn; Wed, 27 Jul 2022 12:08:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u0FB92oirwVZFuiniMkphHLkQhU9dB22btYbLujb+ZdORViT8VR42QW+fg1wdQWH69l6A5 X-Received: by 2002:a17:90b:1807:b0:1f0:5875:9751 with SMTP id lw7-20020a17090b180700b001f058759751mr6330263pjb.25.1658948900672; Wed, 27 Jul 2022 12:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658948900; cv=none; d=google.com; s=arc-20160816; b=06HvKYHNlPutRycaGaM6azxhAWcMl0nD/DJAwx5Rm+Pwtjx23yLtw69wynQvatWlVU oDZs0ayJQLVm34ZCj/OokFPgiwWWoCVLCeU++RMxzOF6G7+db4GkHK0h8JPEQorbxauH 1jANi/g/0qJqaNNir7z3MvqjGCsSp8gHau0v3+GXN5Mr2sgsy7f/X/N5YAhabbSAbp8B 9/WCu/UY2Q0Ilh5XLY63G0Z7jDH7bIGPeiTmdQ8+PAGMbJaRGK/eZIkZT6+z+RlyxC+9 qfhKs7NXJqgYxqeBvLKZ7+ynynHYgkXDzpMUAtfWPoiLwDSmbv/tDfZuBvmSosvaC1yA z7TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject; bh=wm5b/U/XPkraYtaUmuUjFIqE4g/QtfA1yBG6G4wB+Cs=; b=AbDjXJTpA+JYVi9TCaZ6xMUug2hEq4m9ptWQTgI48DtVDrwctaNdbyMue9kDHMZoOz RfDfKSvbb/2zIxVXckL3mGsJQG2t6FQ7vr0epz7lf9BdxbuygrRUyH4NCEUw2SYzxpcs Xp3bw19ivLvMFfQ27nn+DFCs4QClxBmi3Q8DFuotPp+5MRj+RDq8HW4G6z2m4/fbAmL8 xe/CwAyU7Gls0Yeh2PsrXmnE/MWisHq8bJ5+y0fboixjefL7O/mt2P4ORDLxXaBcaNq0 qPxDACWIK/UsmcHURAI4wzryx+rE/OFbkpwN/bY2I6pBRlkVOIJ/Id9JDiwq9Mygtnob T39Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 73-20020a63064c000000b0040cb27906cbsi24799142pgg.464.2022.07.27.12.08.00; Wed, 27 Jul 2022 12:08:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbiG0TH0 (ORCPT + 99 others); Wed, 27 Jul 2022 15:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbiG0TGz (ORCPT ); Wed, 27 Jul 2022 15:06:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2461225D6 for ; Wed, 27 Jul 2022 11:40:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 957B3619CF for ; Wed, 27 Jul 2022 18:40:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9F84C433D6 for ; Wed, 27 Jul 2022 18:40:10 +0000 (UTC) Subject: [PATCH v2 02/13] NFSD: nfserrno(-ENOMEM) is nfserr_jukebox From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Wed, 27 Jul 2022 14:40:09 -0400 Message-ID: <165894720993.11193.15576225566547814504.stgit@manet.1015granger.net> In-Reply-To: <165894669884.11193.6386905165076468843.stgit@manet.1015granger.net> References: <165894669884.11193.6386905165076468843.stgit@manet.1015granger.net> User-Agent: StGit/1.5.dev2+g9ce680a5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Suggested-by: Dai Ngo Signed-off-by: Chuck Lever --- fs/nfsd/nfs4xdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 358b3338c4cc..9b8091c177bc 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1810,7 +1810,7 @@ nfsd4_decode_test_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_test_sta for (i = 0; i < test_stateid->ts_num_ids; i++) { stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); if (!stateid) - return nfserrno(-ENOMEM); /* XXX: not jukebox? */ + return nfserr_jukebox; INIT_LIST_HEAD(&stateid->ts_id_list); list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid); @@ -1933,7 +1933,7 @@ nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) ns_dummy = kmalloc(sizeof(struct nl4_server), GFP_KERNEL); if (ns_dummy == NULL) - return nfserrno(-ENOMEM); /* XXX: jukebox? */ + return nfserr_jukebox; for (i = 0; i < count - 1; i++) { status = nfsd4_decode_nl4_server(argp, ns_dummy); if (status) {