On Tue, Apr 27, 2004 at 09:51:34PM -0400, Alan Stern wrote: > On Tue, 27 Apr 2004, Greg KH wrote: > > > On Mon, Apr 19, 2004 at 09:06:50AM +0200, Oliver Neukum wrote: > > > That's an advantage. Using the knowledge that sys_open() takes BKL in > > > an example driver is not nice. > > > > But it's a fact of life. We need an external lock (from the internal > > device structure) to prevent race conditions. open() takes the BKL. > > So, let's use that. It's simple, nice, and it works. > > Out of curiosity, exactly where does open() call lock_kernel()? Although > there are loads of places it gets called in fs/*.c, I didn't notice any on > the path for open().
fs/char_dev.c::chrdev_open() thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel