linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: R.Oehler@GDImbH.com
To: linux-mm@kvack.org
Subject: recursive lock-enter-deadlock
Date: Wed, 21 Nov 2001 11:19:13 +0100 (MET)	[thread overview]
Message-ID: <XFMail.20011121111913.R.Oehler@GDImbH.com> (raw)

A short question (I don't have a recent 2.4.x at hand, currently):

Is this recursive lock-enter-deadlock (2.4.0) fixed in newer kernels?

Regards,
        Ralf





void truncate_inode_pages(struct address_space * mapping, loff_t lstart) 
{
        unsigned long start = (lstart + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
        unsigned partial = lstart & (PAGE_CACHE_SIZE - 1);

repeat:
        spin_lock(&pagecache_lock);
        if (truncate_list_pages(&mapping->clean_pages, start, &partial))
                goto repeat;
        if (truncate_list_pages(&mapping->dirty_pages, start, &partial))
                goto repeat;
        if (truncate_list_pages(&mapping->locked_pages, start, &partial))
                goto repeat;
        spin_unlock(&pagecache_lock);
}

 -----------------------------------------------------------------
|  Ralf Oehler
|  GDI - Gesellschaft fuer Digitale Informationstechnik mbH
|
|  E-Mail:      R.Oehler@GDImbH.com
|  Tel.:        +49 6182-9271-23 
|  Fax.:        +49 6182-25035           
|  Mail:        GDI, Bensbruchstrasse 11, D-63533 Mainhausen
|  HTTP:        www.GDImbH.com
 -----------------------------------------------------------------

time is a funny concept

--
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/

             reply	other threads:[~2001-11-21 10:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-21 10:19 R.Oehler [this message]
2001-11-21 10:56 ` Stephen C. Tweedie
2001-11-21 11:52   ` R.Oehler
2001-11-21 12:35     ` Stephen C. Tweedie

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=XFMail.20011121111913.R.Oehler@GDImbH.com \
    --to=r.oehler@gdimbh.com \
    --cc=linux-mm@kvack.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