Thread (10 messages) 10 messages, 5 authors, 2005-12-12

Re: allowed pages in the block later, was Re: [Ext2-devel] [PATCH] ext3: avoid sending down non-refcounted pages

From: Christoph Hellwig <hch@infradead.org>
Date: 2005-12-12 17:26:00
Also in: linux-fsdevel, lkml

On Sat, Dec 10, 2005 at 04:47:36PM -0800, Andrew Morton wrote:
Christoph Hellwig [off-list ref] wrote:
quoted
The problem we're trying to solve here is how do implement network block
 devices (nbd, iscsi) efficiently.  The zero copy codepath in the networking
 layer does need to grab additional references to pages.  So to use sendpage
 we need a refcountable page.  pages used by the slab allocator are not
 normally refcounted so try to do get_page/pub_page on them will break.
I don't get it.  Doing get_page/put_page on a slab-allocated page should do
the right thing?
As Arjan mentioned, what would be the right thing?  Delaying returning the
page to the page pool and disallow reuse until page count reaches zero?
All this seems highly impractical.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help