Re: [GIT PULL] PMEM driver for v4.1
From: Christoph Hellwig
Date: Mon Apr 13 2015 - 13:22:32 EST
On Mon, Apr 13, 2015 at 02:35:35PM +0200, Ingo Molnar wrote:
> How does splice work with DAX files?
By falling back to default_file_splice_read/default_file_splice_write
which doesn't use the iter ops, but instead requires a copy in the
splice code. But given that the actual underlying reads and writes
bypass the pagecache it's not any less effiecient than the normal
pagecache based splice.
> AFAICS vmsplice() won't work, as
> it uses get_user_pages(), which needs struct page backing.
Exactly.
> Also, how
> will f_op->sendpage() work? That too needs page backing.
default_file_splice_read allocates it's own kernel pages, which are
then passed to ->sendpage.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/