LWN.net Logo

BKL-free in 2.6.37 (maybe)

BKL-free in 2.6.37 (maybe)

Posted Sep 23, 2010 14:48 UTC (Thu) by cesarb (subscriber, #6266)
In reply to: BKL-free in 2.6.37 (maybe) by marcH
Parent article: BKL-free in 2.6.37 (maybe)

> In such cases isn't it better to just let this suboptimal but tested and working code depend forever on an optional BKL?

If every use of the BKL is removed, the code which magically releases and reacquires it on a context switch can also be removed. This cannot be done if there is even one single user.

Not to mention that it is also a good canary for bit-rotted code. It is most probably not "tested and working code"; said code usually depended on some property of the environment which has now changed (this is how bit rot happens).


(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