linux-stable/drivers/usb/usbip
Andreas Gruenbacher a9da6ddaef kthread: add kthread_stop_put
[ Upstream commit 6309727ef2 ]

Add a kthread_stop_put() helper that stops a thread and puts its task
struct.  Use it to replace the various instances of kthread_stop()
followed by put_task_struct().

Remove the kthread_stop_put() macro in usbip that is similar but doesn't
return the result of kthread_stop().

[agruenba@redhat.com: fix kerneldoc comment]
  Link: https://lkml.kernel.org/r/20230911111730.2565537-1-agruenba@redhat.com
[akpm@linux-foundation.org: document kthread_stop_put()'s argument]
Link: https://lkml.kernel.org/r/20230907234048.2499820-1-agruenba@redhat.com
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: bb9025f443 ("dma-mapping: benchmark: fix up kthread-related error handling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:52 +02:00
..
Kconfig
Makefile
stub.h
stub_dev.c USB: usbip: fix stub_dev hub disconnect 2023-11-20 11:59:26 +01:00
stub_main.c usbip: usbip_host: Replace strlcpy with strscpy 2023-06-23 09:54:32 +02:00
stub_rx.c
stub_tx.c
usbip_common.c
usbip_common.h kthread: add kthread_stop_put 2024-06-12 11:12:52 +02:00
usbip_event.c
vhci.h
vhci_hcd.c usbip: vhci_hcd: Convert to platform remove callback returning void 2023-05-28 12:38:02 +01:00
vhci_rx.c
vhci_sysfs.c
vhci_tx.c
vudc.h
vudc_dev.c USB: usbip: Remove an unnecessary goto 2023-08-08 10:36:51 +02:00
vudc_main.c
vudc_rx.c
vudc_sysfs.c
vudc_transfer.c
vudc_tx.c