LWN.net Logo

kmalloc cannot figure out whether sleeping is allowable or not

kmalloc cannot figure out whether sleeping is allowable or not

Posted Apr 2, 2008 0:54 UTC (Wed) by roelofs (guest, #2599)
In reply to: kmalloc cannot figure out whether sleeping is allowable or not by rusty
Parent article: Atomic context and kernel API design

Damn, but it was such a beautiful example; the same one I used in 2003 in my OLS keynote, and noone spotted it then either.

At least you're in good company. ;-)

A somewhat analogous "discovery" involved the thread-(non)safety of the double-checked locking pattern in C++, which various people (possibly including Scott Effective C++ Meyers himself) espoused for some years prior to the publication of an article describing its problems [PDF].

Greg


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds