On Tue, 27 May 2008 13:31:00 -0300
Mauro Carvalho Chehab <mchehab@infradead.org> wrote:
In fact, 2.6.26 and prior kernels *do* acquire the BKL on open (for
char devices) - that's the behavior that the bkl-removal tree is there
to do away with. So, for example, I've pushed that acquisition down
into video_open() instead.
So, for now, open() is serialized against ioctl() in video drivers. As
soon as you take the BKL out of ioctl(), though, that won't happen,
unless the mutex you use is also acquired in the open path.
jon
--