linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] vmsplice() and ->steal()
@ 2016-12-10  2:38 Al Viro
  2016-12-10  3:03 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2016-12-10  2:38 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-fsdevel, Nicholas Piggin, Miklos Szeredi

	vmsplice() generates pipe_bufs with ->steal() set to
user_page_pipe_buf_steal().  What should happen when the source pages
had code from an mmapped area and why shouldn't their ->steal()
do what page_cache_pipe_buf_release() does in that case?

	As it is, e.g. fuse_dev_splice_write() getting fed that stuff could,
AFAICS, clear MappedToDisk on such a page, scream about weird pages
(upon noticing non-NULL ->mapping) and fall back to copying (thankfully).
We don't have that many ->steal() users (as the matter of fact, I've
discovered that while trying to debug the breakage in one I'd been
trying to add), but I really wonder about the intended semantics of
->steal().

	Comments?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-10  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10  2:38 [RFC] vmsplice() and ->steal() Al Viro
2016-12-10  3:03 ` Al Viro
2016-12-10  5:28   ` Nicholas Piggin

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).