Linux NFS development
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@kernel.org>
To: Chuck Lever <chuck.lever@oracle.com>,
	Anna Schumaker <anna.schumaker@oracle.com>
Cc: Anna Schumaker <anna@kernel.org>,
	Trond Myklebust <trond.myklebust@hammerspace.com>,
	linux-nfs@vger.kernel.org
Subject: Re: [PATCH v10 2/7] nfs/localio: avoid issuing misaligned IO using O_DIRECT
Date: Thu, 18 Sep 2025 15:17:27 -0400	[thread overview]
Message-ID: <aMxax9SBQLML8_Se@kernel.org> (raw)
In-Reply-To: <1f740990-edac-4c41-9572-4397c138e0f3@oracle.com>

On Thu, Sep 18, 2025 at 11:55:59AM -0700, Chuck Lever wrote:
> On 9/18/25 10:15 AM, Anna Schumaker wrote:
> >> diff --git a/fs/nfsd/localio.c b/fs/nfsd/localio.c
> >> index 269fa9391dc46..be710d809a3ba 100644
> >> --- a/fs/nfsd/localio.c
> >> +++ b/fs/nfsd/localio.c
> > I'll need an acked-by from Chuck or Jeff for the NFSD portions of this patch.
> 
> Doesn't this series need
> 
> https://lore.kernel.org/linux-nfs/175811950708.19474.3966708920934397510.stgit@91.116.238.104.host.secureserver.net/T/#u
> 
> as a prerequisite?

Correct, that one is needed (along with its prereqs).  Here is a git
branch I just pushed (because I'm chasing a nfstrace.h compiler issue
with/for Anna):

https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=anna-linux-next-6.18

It has the 4 NFSD prereq commits Anna needs to apply this NFS client
series (which will be going through your NFSD tree if you decide the
NFSD Direct READ support is ready).

Mike


> 
> 
> > Thanks,
> > Anna
> > 
> >> @@ -117,12 +117,23 @@ nfsd_open_local_fh(struct net *net, struct auth_domain *dom,
> >>  	return localio;
> >>  }
> >>  
> >> +static void nfsd_file_dio_alignment(struct nfsd_file *nf,
> >> +				    u32 *nf_dio_mem_align,
> >> +				    u32 *nf_dio_offset_align,
> >> +				    u32 *nf_dio_read_offset_align)
> >> +{
> >> +	*nf_dio_mem_align = nf->nf_dio_mem_align;
> >> +	*nf_dio_offset_align = nf->nf_dio_offset_align;
> >> +	*nf_dio_read_offset_align = nf->nf_dio_read_offset_align;
> >> +}
> >> +
> >>  static const struct nfsd_localio_operations nfsd_localio_ops = {
> >>  	.nfsd_net_try_get  = nfsd_net_try_get,
> >>  	.nfsd_net_put  = nfsd_net_put,
> >>  	.nfsd_open_local_fh = nfsd_open_local_fh,
> >>  	.nfsd_file_put_local = nfsd_file_put_local,
> >>  	.nfsd_file_file = nfsd_file_file,
> >> +	.nfsd_file_dio_alignment = nfsd_file_dio_alignment,
> >>  };
> >>  
> >>  void nfsd_localio_ops_init(void)
> >> diff --git a/include/linux/nfslocalio.h b/include/linux/nfslocalio.h
> >> index 59ea90bd136b6..3d91043254e64 100644
> >> --- a/include/linux/nfslocalio.h
> >> +++ b/include/linux/nfslocalio.h
> >> @@ -64,6 +64,8 @@ struct nfsd_localio_operations {
> >>  						const fmode_t);
> >>  	struct net *(*nfsd_file_put_local)(struct nfsd_file __rcu **);
> >>  	struct file *(*nfsd_file_file)(struct nfsd_file *);
> >> +	void (*nfsd_file_dio_alignment)(struct nfsd_file *,
> >> +					u32 *, u32 *, u32 *);
> >>  } ____cacheline_aligned;
> >>  
> >>  extern void nfsd_localio_ops_init(void);
> 
> For the above hunks:
> 
> Acked-by: Chuck Lever <chuck.lever@oracle.com>
> 
> 
> -- 
> Chuck Lever

  reply	other threads:[~2025-09-18 19:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 18:18 [PATCH v10 0/7] NFS Direct: align misaligned DIO for LOCALIO Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 1/7] nfs/localio: make trace_nfs_local_open_fh more useful Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 2/7] nfs/localio: avoid issuing misaligned IO using O_DIRECT Mike Snitzer
2025-09-18 17:15   ` Anna Schumaker
2025-09-18 17:31     ` Mike Snitzer
2025-09-18 18:55     ` Chuck Lever
2025-09-18 19:17       ` Mike Snitzer [this message]
2025-09-17 18:18 ` [PATCH v10 3/7] nfs/localio: refactor iocb and iov_iter_bvec initialization Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 4/7] nfs/localio: refactor iocb initialization Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 5/7] nfs/localio: add proper O_DIRECT support for READ and WRITE Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 6/7] nfs/localio: add tracepoints for misaligned DIO READ and WRITE support Mike Snitzer
2025-09-18 17:33   ` Anna Schumaker
2025-09-18 17:46     ` Mike Snitzer
2025-09-18 17:55       ` Anna Schumaker
2025-09-18 19:21         ` Mike Snitzer
2025-09-18 19:55           ` Anna Schumaker
2025-09-18 20:18             ` Mike Snitzer
2025-09-18 21:03               ` Mike Snitzer
2025-09-18 21:06                 ` Anna Schumaker
2025-09-18 21:07                 ` Anna Schumaker
2025-09-18 21:41                   ` Mike Snitzer
2025-09-17 18:18 ` [PATCH v10 7/7] NFS: add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support Mike Snitzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aMxax9SBQLML8_Se@kernel.org \
    --to=snitzer@kernel.org \
    --cc=anna.schumaker@oracle.com \
    --cc=anna@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox