lkml.org 
[lkml]   [2008]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 10/21] buffer heads: Support slab defrag
On Wed, 21 May 2008 09:19:42 +1000 David Chinner <dgc@sgi.com> wrote:

> sync_inode() is far too
> heavy-weight to be used in a reclaim context

It's more than efficiency. There are lots and lots of things we cannot
do in direct-reclaim context.

a) Can't lock pages (well we kinda sorta could, but generally code
will just trylock)

b) Cannot rely on the inode or the address_space being present in
memory after we have unlocked the page.

c) Cannot run iput(). Or at least, we couldn't five or six years
ago. afaik nobody has investigated whether the situation is now
better or worse.

d) lots of deadlock scenarios - need to test __GFP_FS basically everywhere
in which you share code with normal writeback paths.

Plus e), f), g) and h). Direct-reclaim is a hostile environment.
Things like b) are a real killer - nasty, subtle, rare,
memory-pressure-dependent crashes.



\
 
 \ /
  Last update: 2008-05-21 01:47    [W:0.144 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site