linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: lsf-pc@lists.linux-foundation.org
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: [LSF/MM TOPIC] Copy offload
Date: Mon, 09 Jan 2012 11:27:30 +0100	[thread overview]
Message-ID: <4F0AC112.2000709@suse.de> (raw)

Quite a lot of discussion has come up recently on supporting Copy
Offload (aka SCSI XCOPY) with linux.

During the course of this several topics were found which need some
discussion:

- Interface: do we need a new syscall? Should we try to resurrect
  the original sys_copyfile() approach from Joel Becker?
  What are the areas and use-cases this syscall should cover?

- Scope: SCSI XCOPY is not the only possible user here, CIFS and
  NFSv4 have similar needs. We should aim for integrating all of
  these use-cases. However, we need to revisit them to figure out
  if and to what extend they are really compatible.

- Implementation: The new interface is likely to reside on the
  filesystem level. To quote Dave Chinner:
  > e.g. for an array offload, we have to flush the source file
  > page cache first so that the data being copied is known to
  > be on disk, then invalidate the destination page cache if
  > overwriting or extend and pre-allocate blocks if not. Then
  > we have to map both files and hand that off to the array.
  >
  > Then there's a whole bunch of tricky questions about what
  > the state of the destination file should look like while
  > the copy is in progress, whether the source file should be
  > allowed to change (e.g. it can't be truncated and have
  > blocks freed and then reused by other files half way through
  > the copy offload operation), and so on.

- Backends: Should we concentrate on the new 'XCOPY LITE' proposal
  or should we try to implement the original XCOPY command, too?

I guess this'll warrant a joint session, as at least filesystem and
storage people will be involved here.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2012-01-09 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 10:27 Hannes Reinecke [this message]
2012-01-10 22:11 ` [LSF/MM TOPIC] Copy offload Joel Becker
2012-01-13 19:25 ` Martin K. Petersen

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=4F0AC112.2000709@suse.de \
    --to=hare@suse.de \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.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).