Skip to content
Commit 559c1e1e authored by Mika Westerberg's avatar Mika Westerberg
Browse files

thunderbolt: Run tb_xdp_handle_request() in system workqueue



We run all XDomain requests during discovery in tb->wq and since it only
runs one work at the time it means that sending back reply to the other
domain may be delayed too much depending whether there is an active
XDomain discovery request running.

To make sure we can send reply to the other domain as soon as possible
run tb_xdp_handle_request() in system workqueue instead. Since the
device can be hot-removed in the middle we need to make sure the domain
structure is still around when the function is run so increase reference
count before we schedule the reply work.

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent ab9f31cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment