Re: [PATCH] usb:REduce scope of BKL in usbdev_open()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Jan 2010, Oliver Neukum wrote:

> Am Dienstag, 12. Januar 2010 18:58:40 schrieb Oliver Neukum:
> > Am Dienstag, 12. Januar 2010 16:17:10 schrieb Alan Stern:
> > > Can't we simply remove the BKL from devio.c entirely?
> > 
> > Sure, it just means auditing all drivers. Do you think it's worth it
> > considering that open() is a rare operation? I am not sure.
> 
> OK, I can find no other open this would race with. This leaves
> two options
> 
> a) it is useless
> b) it locks against something arcane
> 
> Which is it?

I'm pretty sure the answer is a).  It's probably just historical 
baggage.  (Apart from the lseek issue, for which we could use a 
different lock.)

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux