Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp645087lqo; Wed, 8 May 2024 10:15:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzZomh1tSEuB+wQiemGQWL6tu+v2BZLDNQ5LNa7Cjwc72WKQOVZqlewcvvCj9aCLAqxkgNTy+RGcR4tKVU5IY0uChn1DB0N5sVPwjPOQ== X-Google-Smtp-Source: AGHT+IG5EgoMUfOuoY5x+r2D4ONNa3B3rx9UwDyLa9w/UeNJkMO/fVvsJ0fBWx8pyeQRdL/PIW8O X-Received: by 2002:a17:902:e5c9:b0:1e8:b81d:e193 with SMTP id d9443c01a7336-1eeb0182666mr39473115ad.12.1715188555484; Wed, 08 May 2024 10:15:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715188555; cv=pass; d=google.com; s=arc-20160816; b=uXdBtOSE9j/90bCViYKjQoMdRMnOcFzjXqStExuHHW5gzZPH4ebln/iH1g/rqmMpFa 68A4z+8yOkRnMaHhsj0uTqhE+PqM9JW2b7dy9741rRByAB3beIFswEdSeEFFWCiVJMHk Rr0A81nfBhpaO08zYXx1gxDz8u83/iGfIzN4itd5spqm8QJrccQpjfLSDIh/Fn4Vx9X8 +0G3puvgLlEGBntUnNPSEASIYNFvbxWlRXII7+vrFw6IrHdpTD3jkZg49wxUquIR3lDf 1Ny3qG9CJNxSSd3ciV4zKSCIRhCT73LRKZlsgCreMXicV5R4qjd8mytxWchTHrZw0Nds x/yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=HRjKbfUWxByuhM30dA+5QXkVVC8R2zWlFHP5VmzbL9A=; fh=UDAlOR0VJ/AbPdvycOhAz6fLQkDR+hc5wNoqNvGNGHM=; b=jMNPXm2aEISTmfkcN+nRI5wd6IoasF+z8yMYbVLRtfUjtUTmaPwD44zAAfm1basXaS K2/qtYVKSpjABS8bElwM48Exs2X0q/C710Q6NDViG+bkCit5MtSy/tdUZfl/nGxpozkC 35OpI6iJL8nocn6FPfb+H0f6T/cyNnWs1Jbv13oHSBB3IOmHAayrEiHGVPTYmcTtsONK 29IG+qOMmQvv6dFqjZZCYj8vIdZOkhVObvPt+NUcRpuVefqtr02OL/cqIHvduChn2/VE 5Aj+BDbgw9vck9f3A6+gpnalI0SOEMxOzrsI/kJZ59N2BWx5NKmViBcHxoIQad6uGFCU uElA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PtXfsIYo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q12-20020a170902a3cc00b001ecc6726cf3si12529783plb.282.2024.05.08.10.15.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PtXfsIYo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3211-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 431BFB2304B for ; Wed, 8 May 2024 17:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FF561CD25; Wed, 8 May 2024 17:13:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PtXfsIYo" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF2058828 for ; Wed, 8 May 2024 17:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188414; cv=none; b=g7U80CDW4h+k77Ax50aX9K0/pUA9Mwk5ivDSsoeFo4D95KduwAeJLI5w2JW2mZo2udc474DUqbjn8gwJh86csMLyxZiwm1HMOdhOnk1Qqywrw38KeZT/+rDQ4+onLeMnjYmArNFxnAuoBTxA1gaxdkvtRnlxCu2KxLq84ftf4pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188414; c=relaxed/simple; bh=jbC0deGrh1mX2nBbGJgbymNMhiVcONf9P4/vgL4Eb1c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NPf4n727ukPuOHWc8ynEPrjLAjYnvJo1SCe8GeWHWXCy33KQmjohO40xxP73DvI02PtGAKIJwh6Mssqvb1RxIeRz26m3hKl0U0Lx8kG+3AzUmqiyS9wVvrfOE1VOWoILcE33URyPAh/DADPegUzWHq1nX7IEXCn5xBky+8fm2UA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PtXfsIYo; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2e20a4e9d96so1734081fa.1 for ; Wed, 08 May 2024 10:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715188411; x=1715793211; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HRjKbfUWxByuhM30dA+5QXkVVC8R2zWlFHP5VmzbL9A=; b=PtXfsIYo7/acAvslI7HE+J0Z/MLa/1ESQ6rAUyKtJaTDmAavnJ4PcEUyfYJcqaAm2l lluuDquHwJD2gxzun8+wrot0YV7nfue3pF8G3akEIx4yE9d56gihTLWHCUOYAzb5qFhR 74JO3jULUu0BuJdeHSVwe1aFqmuxokNMfnfNd3hGM3bWMF4QWG1t8WCQ2r9remmPW/fd f35MfWt1xhk1Z0X3NV+nXj9z0eJXfidPqQQ75ETSFUloVXSZI+6hsT3aTN4AmzyKsBya EfSbN1imEV19Q6tOdgMRD0qqpzAlEZw6e16Zn3HexjyC2/4tEyh5bS8mTastIClJRTwz 6JXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715188411; x=1715793211; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HRjKbfUWxByuhM30dA+5QXkVVC8R2zWlFHP5VmzbL9A=; b=uf8r3AYX+BNJxwCVZyCI1ypieQ7X0qWVd6F4hlrDSqzrvBtlU89z5KbLSa60ud9HMZ 7CH7g3JVMGMKsCtEnoHS1nTDnAo4TdGTFeEoD+8Go+SnRqx8XZGLmj4vhEncxItn1MFC egPnfiDoOM1qCnv6dY0lD4bDqI04GOJ5DFQ+4ThnkZSuzgmkPHn0hkiN1BItKumn87FX EBOTICi6xGDp81S4LqF+hDOhv6mZ4GDR2lUdaJtHKPBnrDPrVpEvlok3aMgdMpBkX4DS /DkJMCvAwOS5MCDaCdAlbux17GVZrSlZF7U9NzqdgilzU3gqry3PmVCrcPdlC1kUFcpu Wj8A== X-Forwarded-Encrypted: i=1; AJvYcCUX8fnfk4wIKMmisFOMeIfFu9xNxnFpBw+IMXebmltjeViIR++EOW8wsdXhFn/CukI4aF/mWBYQEzfxEhXOZGsIpkMDuRBMOr7l X-Gm-Message-State: AOJu0YylvVnQ5x44JupKFvcg/heaiSxNjRewrgyWC5U0PMLOKb4CZpwQ Ku+1oQnbS3Ocf6lBNc5hNGKajF4EkIrUbmbfLsdV34dRyDCaLn9yFMTZNSc7lzbs4kNI1VmKsPY IkmV+sjuBU2Kws10rHbDpOUJT6Eo= X-Received: by 2002:a2e:9610:0:b0:2e2:1647:8308 with SMTP id 38308e7fff4ca-2e446e7ff6amr19553421fa.2.1715188410589; Wed, 08 May 2024 10:13:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507151545.26888-1-olga.kornievskaia@gmail.com> <35158E21-2724-4C1A-950F-5A6A616C862A@redhat.com> In-Reply-To: <35158E21-2724-4C1A-950F-5A6A616C862A@redhat.com> From: Olga Kornievskaia Date: Wed, 8 May 2024 13:13:18 -0400 Message-ID: Subject: Re: [PATCH 1/1] pNFS/filelayout: fixup pNfs allocation modes To: Benjamin Coddington Cc: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 11:25=E2=80=AFAM Benjamin Coddington wrote: > > On 7 May 2024, at 11:15, Olga Kornievskaia wrote: > > > From: Olga Kornievskaia > > > > Change left over allocation flags. > > > > Fixes: a245832aaa99 ("pNFS/files: Ensure pNFS allocation modes are cons= istent with nfsiod") > > Signed-off-by: Olga Kornievskaia > > --- > > fs/nfs/filelayout/filelayout.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelay= out.c > > index cc2ed4b5a4fd..85d2dc9bc212 100644 > > --- a/fs/nfs/filelayout/filelayout.c > > +++ b/fs/nfs/filelayout/filelayout.c > > @@ -875,7 +875,7 @@ filelayout_pg_init_read(struct nfs_pageio_descripto= r *pgio, > > req->wb_bytes, > > IOMODE_READ, > > false, > > - GFP_KERNEL); > > + nfs_io_gfp_mask()); > > if (IS_ERR(pgio->pg_lseg)) { > > pgio->pg_error =3D PTR_ERR(pgio->pg_lseg); > > pgio->pg_lseg =3D NULL; > > @@ -899,7 +899,7 @@ filelayout_pg_init_write(struct nfs_pageio_descript= or *pgio, > > req->wb_bytes, > > IOMODE_RW, > > false, > > - GFP_NOFS); > > + nfs_io_gfp_mask()); > > if (IS_ERR(pgio->pg_lseg)) { > > pgio->pg_error =3D PTR_ERR(pgio->pg_lseg); > > pgio->pg_lseg =3D NULL; > > -- > > 2.39.1 > > Looks fine, but I didn't think you could get here from rpciod/nfsiod > context. I might be missing something, how did you get here from there? I have to admit I don't fully understand (if at all) the implications of having the wrong flags. I also don't follow what you mean by this code not being executed by the rpciod/nfsiod context. This code is done while doing (buffered) IO and performed by the rpciod context? In truth I was making it consistent with what flexfiles is doing for their pnfs_update_layout() usage. > > Ben >