On 2021/02/27 0:04, Shuah Khan wrote: > I will send it out later on today. Since I haven't received it, here comes an update. Changes since v1: Tetsuo Handa found that the PTR_ERR() access in usbip_prepare_threads() in v1 was wrong, and fixed it in v2. Changes since v2: The kernel test robot <lkp@xxxxxxxxx> found the same error using scripts/coccinelle/tests/odd_ptr_err.cocci and Julia Lawall <julia.lawall@xxxxxxxx> sent us a patch, but nothing changed because that error was already fixed in v2. Changes since v3: Reduce lines changed in drivers/usb/usbip/stub_dev.c . Split into 12 patches. Tetsuo Handa (12): usb: usbip: introduce usbip_event_mutex for serialization usb: usbip: vhci: serialize attach_store()/detach_store() against event_handler() usb: usbip: vudc: serialize usbip_sockfd_store() against event_handler() usb: usbip: stub: serialize usbip_sockfd_store() against event_handler() usb: usbip: don't reset tcp_socket at vhci_device_reset() usb: usbip: fix error handling of kthread_get_run() usb: usbip: preallocate kernel threads for consistent attach operation usb: usbip: check that stream socket is used usb: usbip: vhci: add automatic recovery to attach_store() usb: usbip: vudc: add automatic recovery to usbip_sockfd_store() usb: usbip: stub: add automatic recovery to usbip_sockfd_store() usb: usbip: remove unused kthread_get_run() drivers/usb/usbip/stub_dev.c | 44 ++++++++++++++----------- drivers/usb/usbip/usbip_common.c | 55 ++++++++++++++++++++++++++++++++ drivers/usb/usbip/usbip_common.h | 25 ++++++++------- drivers/usb/usbip/usbip_event.c | 15 +++++++++ drivers/usb/usbip/vhci_hcd.c | 6 ---- drivers/usb/usbip/vhci_sysfs.c | 50 +++++++++++++++++++++-------- drivers/usb/usbip/vudc_sysfs.c | 50 +++++++++++++++++------------ 7 files changed, 176 insertions(+), 69 deletions(-) -- 2.18.4