Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1220194rwb; Thu, 6 Oct 2022 09:58:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Oqoh+s20+vUMoikObaerqtDYmAqpNPTv1xdOGK/uria8903PA4H/FdaEQN3AMkRUSfARg X-Received: by 2002:a17:907:c03:b0:781:fd5a:c093 with SMTP id ga3-20020a1709070c0300b00781fd5ac093mr653694ejc.89.1665075492102; Thu, 06 Oct 2022 09:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665075492; cv=none; d=google.com; s=arc-20160816; b=0cCq+HJOv0IosdS7/e+rYjq5Ap54w4aacwiiRcWx7mRiAvFDjdlMUavWrQBBAPRsnW 1HaFjG4cLgi4EOGEddbXZ07c+nyThNbYw6Gii3XUBbg0CYLq1nQZha2wMFFNgr34XiWc rSd94UU95oImM7HHESysAGmWzwrWPBRY0WUuxC044paGvf7RUFZOhLVUwxIZfzbcz97e EkIksV+FFqEG7SEjpWAGaUjSCHH1h9cFHLvZPBZZnjef03Z6eMejlKzA8PI96AIL+dWI nTJfqmO7wkMUBqPxjNBJu1vDvG2LblrmwYSi5MPvmojMGMiah13rys/e8Nvus+qGBGyh +fiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=Ufz5gxpwsyvkpIBMXDrgdSIpqem/5aF1eIQo2dMwOEU=; b=TWwbcT/w40i+Po2sWBp12tDfxpKC6d0QQND8xPsSfLEb9E6NHJbegfyL/xzekWYdi1 0rJ/KseOFeI4jDDsqFMQ2EY5UAK7PVKc1RNxmcJ+zOsB7GQ4BpJT7pIznMHCzCnx900e IhZvx8/BPCSgWdYWT5QXRTtOEsgxqrgnU3TeGzyFLt5VPWA7aA7Z69gh6JLrgWNHy0Gb fYj2MHHfPn0dEyBFUgNUBAcBBS2HJlHER5OJxDn7UlNbJAoj70zbJKFoy229SU8tGbxw oLuhRwRJpHe2jBQxjkZtviSnDnM+z5zhagRxBqjwIKMu06m7g77+Eim+AekK/T+mA24L w8eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GSoaJqYA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj9-20020a0564022b8900b0043d54ba0a4dsi15203805edb.327.2022.10.06.09.57.46; Thu, 06 Oct 2022 09:58:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GSoaJqYA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbiJFQfr (ORCPT + 99 others); Thu, 6 Oct 2022 12:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231451AbiJFQfo (ORCPT ); Thu, 6 Oct 2022 12:35:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D97FE9B874 for ; Thu, 6 Oct 2022 09:35:42 -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 756F661A11 for ; Thu, 6 Oct 2022 16:35:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C020C433D7; Thu, 6 Oct 2022 16:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665074141; bh=yTbk1yzJgPURyBPspfhzDFZJqhqSzXKFfPplKLaoU7M=; h=Subject:From:To:Date:In-Reply-To:References:From; b=GSoaJqYAhGy6O86tXqzGvQkCvkTLTxsi2O8dbR3fW7+Aoz4OEW+puT2N7h8JbRCzW MhOTbIuXRqu/T/sRz/ePNcplSQAy/q2bHHuj889oFDgfJq1qY5l2nRjkw4Feenv/gc Whk1c0xHi3/qno/SJzxzmBKfK1exZPOrpRWoma0t7aOUCbQ0G4xlo/FM1OiXe9blwB P1bmCqjTBDPoiWo4HiuKuvlhrByeZwYEsmi0Lov3kofFsI7rI5D8qblECzj7241Sku D+ClLrIKOoxSzvteQZxRxIU9XAoApBO8FQ5qYr0b/q1LoOcJXHpifrblYs3dmPsyQB 6ZALE/hgifSWw== Message-ID: Subject: Re: [PATCH v4 1/2] NFSD: Return nfserr_serverfault if splice_ok but buf->pages have data From: Jeff Layton To: Anna Schumaker , linux-nfs@vger.kernel.org, chuck.lever@oracle.com Date: Thu, 06 Oct 2022 12:35:39 -0400 In-Reply-To: <20220913180151.1928363-2-anna@kernel.org> References: <20220913180151.1928363-1-anna@kernel.org> <20220913180151.1928363-2-anna@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Tue, 2022-09-13 at 14:01 -0400, Anna Schumaker wrote: > From: Anna Schumaker >=20 > This was discussed with Chuck as part of this patch set. Returning > nfserr_resource was decided to not be the best error message here, and > he suggested changing to nfserr_serverfault instead. >=20 > Signed-off-by: Anna Schumaker > --- > fs/nfsd/nfs4xdr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c > index 1e9690a061ec..01dd73ed5720 100644 > --- a/fs/nfsd/nfs4xdr.c > +++ b/fs/nfsd/nfs4xdr.c > @@ -3994,7 +3994,7 @@ nfsd4_encode_read(struct nfsd4_compoundres *resp, _= _be32 nfserr, > } > if (resp->xdr->buf->page_len && splice_ok) { > WARN_ON_ONCE(1); > - return nfserr_resource; > + return nfserr_serverfault; > } > xdr_commit_encode(xdr); > =20 Reviewed-by: Jeff Layton