[lkml]   [2001]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectremoval of BKL from drivers ..
As an outgrowth of the locking document I did a few months ago
(, Dave Hansen (haveblue) and I
have been looking at the use of the BKL in the release() functions of
drivers to see if it was really needed. This isn't so much a
performance thing (although you can never really tell with the BKL :)
as a cleanliness thing. It would appear that while some of those
drivers could stand some SMP locking, using the BKL in the release
function (only) doesn't provide it. We've identified over 50 drivers
in which this can be removed, and are working on the patches (and
planning to contact the maintainers, per usual). We'll select a small
number of them and apply safe SMP locking to them as examples for those
who like to cut 'n' paste their drivers for new devices.

The advantage of these changes will be to aid any developer trying to
determine how the BKL may or may not interact with their code. With
these patches, there will be 50+ less cases to consider.

At the time, it appears that most of these lock/unlock pairs were
created just in case they were needed, since there wasn't time to
inspect each driver or contact each maintainer. Before we post these
patches, I thought I'd ask if in the time since Al Viro moved this out
here (July 2000) if anybody (especially him!) has found a *legitimate*
use of the BKL in the release() functions. (We have not found one.)


PS The patches, available in about a week or so barring complications,
will also be posted to the above sourceforge website.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:2.524 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site