A patch has been created which removes the BKL from the release
functions of over 50 drivers' release functions. The release
functions are already serialized in the VFS code by an atomic_t
which guarantees that each function will be called only once, after
all file descriptors have been closed. In addition, in these
drivers, the BKL was _only_ held in the release function and
nowhere else in the driver where it might be needed.
To provide good examples, some patches address minor but necessary
locking issues in the open/release functions of the affected
Special care has been taken not to introduce more locking issues
into the drivers. They're available as one big patch against
All the patches are available in
and some of the rationale and issues can be found in
Log in to post a comment.