On Tue, Aug 26, 2008 at 05:15:32PM -0600, Jonathan Corbet wrote:
You can rename it to uio_idr_mutex (it's mutex, dammit!) and put next to
uio_idr and avoid comment ;-) Or if locking around _pre_get() isn't
necessary you can actually make it spinlock ;-) Anyway, put it close.
Indeed, BKL protects nothing because of GFP_KERNEL allocation.
--