mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rimaher Molanski" <rimaherm@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: releasing page cached pages in 2.4.20
Date: Sun, 09 May 2004 20:55:02 +0000	[thread overview]
Message-ID: <BAY1-F96fdH8hOY0luQ0000a23c@hotmail.com> (raw)

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/


                 reply	other threads:[~2004-05-09 20:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY1-F96fdH8hOY0luQ0000a23c@hotmail.com \
    --to=rimaherm@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®