lkml.org 
[lkml]   [2015]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] PMEM driver for v4.1
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.


\
 
 \ /
  Last update: 2015-04-13 20:01    [W:0.067 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site