On Fri, 12 Oct 2012, Ming Lei wrote: > In fact, the error handling case may be generalized to the context > which is doing the actual IO transfer, and the change on mass storage > should be as below. We can find other similar situations too, such as > mmc thread(mmc_queue_thread).
Right. But there's a second context in usb-storage that affects I/O transfers: usb_stor_pre_reset() and usb_stor_post_reset(). They acquire and release a mutex that is used on the I/O path. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html