On Tue, 22 May 2007, Greg KH wrote:
On Tue, May 22, 2007 at 11:46:41AM -0400, Alan Stern wrote:
This patch (as908) adds central protection in usbcore for the
prototypical race between opening and unregistering a char device.
The spinlock used to protect the minor-numbers array is replaced
Am Mittwoch, 23. Mai 2007 17:28 schrieb Alan Stern:
Although I really hate rw locks, I'll let it go for now, we can easily
change it to a normal mutex in the future...
In case it wasn't already obvious, the reason for making it an rwsem
was so that multiple open() calls could run
On Tue, May 22, 2007 at 11:46:41AM -0400, Alan Stern wrote:
This patch (as908) adds central protection in usbcore for the
prototypical race between opening and unregistering a char device.
The spinlock used to protect the minor-numbers array is replaced with
an rwsem, which can remain locked
This patch (as908) adds central protection in usbcore for the
prototypical race between opening and unregistering a char device.
The spinlock used to protect the minor-numbers array is replaced with
an rwsem, which can remain locked across a call to a driver's open()
method. This guarantees that