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:52:49PM +0100, Peter Stuge wrote:
> Greg KH wrote:
> > > 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's also ripe for problems and data loss,
> 
> Hm? How so? Note "actually being used" - as soon as the block device
> is in use, of course noone else can go claim that interface.

Ah, ok, that's a bit better, but then we need to figure out some way to
push "being used" down to a large majority of drivers, which we really
don't have.

Sounds like a lot of work for little gain :)

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