Re: [PATCH] USB: prevent overlapping access by usb-storage and usbfs

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

 



On Thu, Jan 17, 2013 at 05:44:45PM +0100, Peter Stuge wrote:
> Greg KH wrote:
> > Ok, given that this is due to really broken hardware, and the use case
> > is quite rare, and the patch doesn't really solve the problem, I'll
> > drop it from my queue.
> 
> No protest against dropping the patch - but just a note that in the
> libusb community we are really big fans of the way (some?) BSD
> systems allow both a kernel driver *and* userspace to open a device
> at the same time - doing locking when the interfaces is actually
> being used by someone.
> 
> For USB storage this would mean that unless a filesystem has been
> mounted or dd is running on the block device, usbfs could claim the
> storage interface *while* the block device exists.
> 
> It is understood that this may well require quite a bit of surgery in
> the kernel, but it's certainly a spiffy solution!

It's also ripe for problems and data loss, and nothing that I want to
see happen in Linux, sorry.  I can't believe the BSD developers are ok
with this, normally they are quite sane compared to us looney Linux
developers :)

greg k-h
--
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