Re: [PATCH] usb: cdc-wdm: cannot wait forever for blocking read/write on reset

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

 



Am Dienstag, 31. Januar 2012, 19:01:00 schrieb Bjørn Mork:
> Oliver Neukum <oliver@xxxxxxxxxx> writes:

> > The mutex allowed this, but we a problem you have noted.
> 
> Yes, but that could never have worked for blocking operations.

True, I introduced a logic bug.
 
> > But you cannot use WDM_SUSPENDING for this because it is not tested
> > when it would need to be tested. And we need to wait in the write() code
> > path.
> 
> OK, that makes sense.  Guess that means that there is no way around this
> except defining a new WDM_RESETTING flag with that exact meaning?  None
> of the existing flags seem to fit.

Yes.

	Regards
		Oliver
--
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