From: Nikita Danilov <Nikita@Namesys.COM>
To: Dawson Engler <engler@csl.stanford.edu>
Cc: akpm@digeo.com (Andrew Morton), linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] potential deadlocks
Date: Fri, 7 Mar 2003 14:24:17 +0300 [thread overview]
Message-ID: <15976.33121.376178.675759@laputa.namesys.com> (raw)
In-Reply-To: <200303040752.h247qOx20275@csl.stanford.edu>
Dawson Engler writes:
> > Andrew Morton writes:
[...]
Sorry for delay.
>
> Do you mean calls to copy_*_user and kmalloc(GFP_WAIT) or did you have
> something else in mind as well?
Yes. Imagine thread that tries to allocate memory with __GFP_FS while
keeping some file system locks. Now try_to_free_pages() calls
->writepage() method that tries to acquire the same lock. See, for
examples, comment before fs/ext3/inode.c:ext3_writepage(), or in
fs/dcache.c:shrink_dcache_memory().
>
> > We have (incomplete) description of kernel lock ordering, which is
> > centered around reiser4 locks, but also includes some core kernel stuff.
> >
> > It is available at
> >
> > http://www.namesys.com/v4/lock-ordering.dot --- source for Bell-Labs' dot(1)
> > http://www.namesys.com/v4/lock-ordering.ps --- postscript output, produced from the .dot source
>
> Wonderful; thanks!
>
I would be glad to receive additions and corrections for this diagram.
>
>
>
Nikita.
next prev parent reply other threads:[~2003-03-07 11:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-03 3:35 Dawson Engler
2003-03-03 5:25 ` Andrew Morton
2003-03-03 6:05 ` Dawson Engler
2003-03-03 6:18 ` Andrew Morton
2003-03-03 6:25 ` Dawson Engler
2003-03-03 9:45 ` Nikita Danilov
2003-03-04 7:52 ` Dawson Engler
2003-03-07 11:24 ` Nikita Danilov [this message]
2003-03-03 13:56 ` Alan Cox
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=15976.33121.376178.675759@laputa.namesys.com \
--to=nikita@namesys.com \
--cc=akpm@digeo.com \
--cc=engler@csl.stanford.edu \
--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®