mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* releasing page cached pages in 2.4.20
@ 2004-05-09 20:55 Rimaher Molanski
  0 siblings, 0 replies; only message in thread
From: Rimaher Molanski @ 2004-05-09 20:55 UTC (permalink / raw)
  To: linux-kernel

Hi,
I'm conducting a small analysis of cache algorithms, and have run into 
problems trying to implement cache eviction in 2.4.20 kernel.   I call 
try_to_release_page (with GFP_NOIO flag) on pages that aren't referenced by 
anything other than page cache and sometimes also the buffer cache.  I 
sometimes do this call from inside the scheduler tq (a task_schedule 
function), if this is relevant.

Anyway, in certain scenarios I get deadlocked on the text.lock.buffer lock, 
and I have no idea which locks I must obtain (or any other prerequisites) 
before I can safely call try_to_release_page. Can anyone help on the 
requirements?  Also, is there a simpler function I could call to get the job 
done?

Thanks,
Rimaher.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-09 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-09 20:55 releasing page cached pages in 2.4.20 Rimaher Molanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®