Files
linux-stable-mirror/include/linux
Alan SternandGreg Kroah-Hartman fc26e98b6c USB: usbcore: Introduce usb_bulk_msg_killable()
commit 416909962e upstream.

The synchronous message API in usbcore (usb_control_msg(),
usb_bulk_msg(), and so on) uses uninterruptible waits.  However,
drivers may call these routines in the context of a user thread, which
means it ought to be possible to at least kill them.

For this reason, introduce a new usb_bulk_msg_killable() function
which behaves the same as usb_bulk_msg() except for using
wait_for_completion_killable_timeout() instead of
wait_for_completion_timeout().  The same can be done later for
usb_control_msg() later on, if it turns out to be needed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Suggested-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/linux-usb/3acfe838-6334-4f6d-be7c-4bb01704b33d@rowland.harvard.edu/
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
CC: stable@vger.kernel.org
Link: https://patch.msgid.link/248628b4-cc83-4e81-a620-3ce4e0376d41@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-03-25 11:05:49 +01:00
..
2026-03-04 07:19:34 -05:00
2026-03-04 07:20:03 -05:00
2025-05-09 09:43:58 +02:00
2025-11-02 22:14:42 +09:00
2026-03-25 11:05:40 +01:00
2025-09-11 17:20:27 +02:00
2026-01-11 15:22:07 +01:00
2025-07-06 11:00:16 +02:00
2025-02-08 09:52:02 +01:00
2025-01-09 13:31:41 +01:00
2026-01-11 15:21:37 +01:00
2025-08-15 12:08:42 +02:00
2025-01-23 17:21:12 +01:00
2026-01-11 15:21:52 +01:00
2025-01-09 13:31:41 +01:00
2025-02-01 18:37:51 +01:00
2026-03-04 07:19:32 -05:00
2025-08-01 09:47:30 +01:00
2026-01-11 15:22:20 +01:00