From: "J. Bruce Fields" <bfields@redhat.com>
To: Olga Kornievskaia <kolga@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [RFC v1 00/17] NFSD support for inter+async COPY
Date: Fri, 1 Sep 2017 15:42:44 -0400 [thread overview]
Message-ID: <20170901194244.GB27922@parsley.fieldses.org> (raw)
In-Reply-To: <20170901194130.GA27922@parsley.fieldses.org>
On Fri, Sep 01, 2017 at 03:41:30PM -0400, J. Bruce Fields wrote:
> Apologies, remind me:
>
> - does wireshark have support for all of this? (Or are there
> patches?)
> - How are you testing?
> - What's the status of the client side?
> - Do we have any user documentation? Does the client or server
> administrator need to do any special setup, or is it just a
> matter of exporting and mounting over 4.1 and calling
(Sorry, 4.2!)
--b.
> copy_file_range()?
> - what currently happens if you try to copy across krb5 mounts?
>
> --b.
>
> On Thu, Mar 02, 2017 at 11:01:24AM -0500, Olga Kornievskaia wrote:
> > This is server-side support for NFSv4.2 inter and async COPY which is
> > on top of existing intra sync COPY. It also depends on the NFS client
> > piece for NFSv4.2 to do client side of the destination server piece
> > in the inter SSC.
> >
> > NFSD determines if COPY is intra or inter and if sync or async. For
> > inter, NSFD uses NFSv4.1 protocol and creates an internal mount point
> > (superblock). It will destroy the mount point when copy is done.
> >
> > To do asynchronous copies, NFSD creates a single threaded workqueue
> > and does not tie up an NFSD thread to complete the copy. Upon receiving
> > the COPY, it generates a unique copy stateid (stores a global list
> > for keeping track of state for OFFLOAD_STATUS to be queried by),
> > queues up a workqueue for the copy, and replies back to the client.
> > nfsd4_copy arguments that are allocated on the stack are copied for
> > the work item.
> >
> > In the async copy handler, it calls into VFS copy_file_range() with
> > 4MB chunks and loops until it completes the requested copy size. If
> > error is encountered it's saved but also we save the amount of data
> > copied so far. Once done, the results are queued for the callback
> > workqueue and sent via CB_OFFLOAD. Also currently, choosing to clean
> > up the copy state information stored in the global list when cope is
> > done and not doing it when callback's release function (it could be
> > done there alternatively if needed it?).
> >
> > On the source server, upon receiving a COPY_NOTIFY, it generate a
> > unique stateid that's kept in the global list. Upon receiving a READ
> > with a stateid, the code checks the normal list of open stateid and
> > now additionally, it'll check the copy state list as well before
> > deciding to either fail with BAD_STATEID or find one that matches.
> > The stored stateid is only valid to be used for the first time
> > with a choosen lease period (90s currently). When the source server
> > received an OFFLOAD_CANCEL, it will remove the stateid from the
> > global list. Otherwise, the copy stateid is removed upon the removal
> > of its "parent" stateid (open/lock/delegation stateid).
> >
> >
> > Andy Adamson (7):
> > NFSD add ca_source_server<> to COPY
> > NFSD generalize nfsd4_compound_state flag names
> > NFSD: allow inter server COPY to have a STALE source server fh
> > NFSD return nfs4_stid in nfs4_preprocess_stateid_op
> > NFSD add COPY_NOTIFY operation
> > NFSD add nfs4 inter ssc to nfsd4_copy
> > NFSD Unique stateid_t for inter server to server COPY authentication
> >
> > Olga Kornievskaia (10):
> > NFSD CB_OFFLOAD xdr
> > NFSD OFFLOAD_STATUS xdr
> > NFSD OFFLOAD_CANCEL xdr
> > NFSD xdr callback stateid in async COPY reply
> > NFSD first draft of async copy
> > NFSD handle OFFLOAD_CANCEL op
> > NFSD stop queued async copies on client shutdown
> > NFSD create new stateid for async copy
> > NFSD define EBADF in nfserrno
> > NFSD support OFFLOAD_STATUS
> >
> > fs/nfsd/Kconfig | 10 +
> > fs/nfsd/netns.h | 8 +
> > fs/nfsd/nfs4callback.c | 95 +++++++
> > fs/nfsd/nfs4proc.c | 704 ++++++++++++++++++++++++++++++++++++++++++++++---
> > fs/nfsd/nfs4state.c | 142 +++++++++-
> > fs/nfsd/nfs4xdr.c | 266 ++++++++++++++++++-
> > fs/nfsd/nfsctl.c | 2 +
> > fs/nfsd/nfsd.h | 2 +
> > fs/nfsd/nfsproc.c | 1 +
> > fs/nfsd/state.h | 32 ++-
> > fs/nfsd/xdr4.h | 53 +++-
> > fs/nfsd/xdr4cb.h | 10 +
> > include/linux/nfs4.h | 1 +
> > 13 files changed, 1273 insertions(+), 53 deletions(-)
> >
> > --
> > 1.8.3.1
> >
next prev parent reply other threads:[~2017-09-01 19:42 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 16:01 [RFC v1 00/17] NFSD support for inter+async COPY Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 01/18] NFSD add ca_source_server<> to COPY Olga Kornievskaia
2017-09-01 19:52 ` J. Bruce Fields
2017-09-01 20:14 ` Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 02/18] NFSD add COPY_NOTIFY operation Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 03/18] NFSD generalize nfsd4_compound_state flag names Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 04/18] NFSD: allow inter server COPY to have a STALE source server fh Olga Kornievskaia
2017-09-01 20:23 ` J. Bruce Fields
2017-09-01 20:25 ` Olga Kornievskaia
2017-09-01 21:16 ` J. Bruce Fields
2017-09-01 21:24 ` J. Bruce Fields
2017-03-02 16:01 ` [RFC v1 05/18] NFSD add nfs4 inter ssc to nfsd4_copy Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 06/18] NFSD return nfs4_stid in nfs4_preprocess_stateid_op Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 07/18] NFSD Unique stateid_t for inter server to server COPY authentication Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 08/18] NFSD CB_OFFLOAD xdr Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 09/18] NFSD OFFLOAD_STATUS xdr Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 10/18] NFSD OFFLOAD_CANCEL xdr Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 11/18] NFSD xdr callback stateid in async COPY reply Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 12/18] NFSD first draft of async copy Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 13/18] NFSD handle OFFLOAD_CANCEL op Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 14/18] NFSD stop queued async copies on client shutdown Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 15/18] NFSD create new stateid for async copy Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 16/18] NFSD define EBADF in nfserrno Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 17/18] NFSD support OFFLOAD_STATUS Olga Kornievskaia
2017-03-02 16:01 ` [RFC v1 18/18] NFSD remove copy stateid when vfs_copy_file_range completes Olga Kornievskaia
2017-03-17 21:21 ` [RFC v1 00/17] NFSD support for inter+async COPY Olga Kornievskaia
2017-03-20 15:30 ` J. Bruce Fields
2017-03-27 21:49 ` Olga Kornievskaia
2017-09-01 19:41 ` J. Bruce Fields
2017-09-01 19:42 ` J. Bruce Fields [this message]
2017-09-01 19:48 ` Olga Kornievskaia
2017-09-01 19:53 ` J. Bruce Fields
2017-09-01 20:02 ` Olga Kornievskaia
2017-09-01 20:09 ` J. Bruce Fields
2017-09-01 20:34 ` Olga Kornievskaia
2017-09-01 21:19 ` J. Bruce Fields
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=20170901194244.GB27922@parsley.fieldses.org \
--to=bfields@redhat.com \
--cc=kolga@netapp.com \
--cc=linux-nfs@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).