aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorWesley Cheng <[email protected]>2021-05-22 00:44:21 +0000
committerGreg Kroah-Hartman <[email protected]>2021-06-04 11:40:46 +0000
commit6fc1db5e6211e30fbb1cee8d7925d79d4ed2ae14 (patch)
tree1356a418f2f2a57d2f829891acc71beeb8656b19 /tools/perf/scripts/python/net_dropmonitor.py
parentusb: typec: tcpm: cancel send discover hrtimer when unregister tcpm port (diff)
downloadkernel-6fc1db5e6211e30fbb1cee8d7925d79d4ed2ae14.tar.gz
kernel-6fc1db5e6211e30fbb1cee8d7925d79d4ed2ae14.zip
usb: gadget: f_fs: Ensure io_completion_wq is idle during unbind
During unbind, ffs_func_eps_disable() will be executed, resulting in completion callbacks for any pending USB requests. When using AIO, irrespective of the completion status, io_data work is queued to io_completion_wq to evaluate and handle the completed requests. Since work runs asynchronously to the unbind() routine, there can be a scenario where the work runs after the USB gadget has been fully removed, resulting in accessing of a resource which has been already freed. (i.e. usb_ep_free_request() accessing the USB ep structure) Explicitly drain the io_completion_wq, instead of relying on the destroy_workqueue() (in ffs_data_put()) to make sure no pending completion work items are running. Signed-off-by: Wesley Cheng <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions