Re: devfs: BKL *not* taken while opening devices

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 2 May 2002 17:44:15 +0100 (BST)


> > The BKL doesn't make a driver safe, remember that it's released on
> > schedule.
>
> I know. But a LOT of in kernel and out-of kernel drives don't schedule
> in open and are therefore safe right now

I looked at this for video4linux and for watchdog drivers. The score was
something like 80% buggy 20% correct. Remember things like request_irq
can schedule.

Fix the drivers, even if they get fixed before the lock is removed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/