From: Blaisorblade <blaisorblade@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] GFP_ATOMIC/GFP_KERNEL broken for use by block devices!!
Date: Sat, 22 Oct 2005 18:38:16 +0200 [thread overview]
Message-ID: <200510221838.17065.blaisorblade@yahoo.it> (raw)
Jeff, remember I asked you not to merge the UBD rewrite for now? Well, I found
one more (and bigger) reason for it, though I don't understand it fully.
Quoting from Arjan Van der Ven, "How not to write kernel driver":
In the write path of a filesystem, using
GFP_KERNEL or GFP_ATOMIC will lead to deadlocks
eventually. [...] GFP_NOFS is there for a reason, as is GFP_NOIO for block
device drivers.
Though there's no explaination of this, I can guess that GFP_KERNEL could
cause the kernel to enter the same (or another, but that shouldn't matter)
block device to free some memory. Not sure what's the problem with GFP_ATOMIC
though.
However, GFP_NO{FS,IO} both imply !ATOMIC (they include __GFP_WAIT), so we
cannot use any of them for our purposes.
Which means that we _must_ ask for help from somebody else.
Anyhow, before merging the patches I'd _really_ like if they were reviewed by
somebody as Jens Axboe or the such, afterwards merged to -mm, and only after
that merged into mainline.
Please, send some feedback on this email as soon as you read - think to
replacing UDP with TCP, ok ;-) ?
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2005-10-24 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-22 16:38 Blaisorblade [this message]
2005-10-24 23:03 ` [uml-devel] Re: GFP_ATOMIC/GFP_KERNEL broken for use by block devices!! Jeff Dike
2005-10-24 23:30 ` Blaisorblade
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=200510221838.17065.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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