• M
    net: thunderbolt: Run disconnect flow asynchronously when logout is received · 027d351c
    Mika Westerberg 提交于
    The control channel calls registered callbacks when control messages
    such as XDomain protocol messages are received. The control channel
    handling is done in a worker running on system workqueue which means the
    networking driver can't run tear down flow which includes sending
    disconnect request and waiting for a reply in the same worker. Otherwise
    reply is never received (as the work is already running) and the
    operation times out.
    
    To fix this run disconnect ThunderboltIP flow asynchronously once
    ThunderboltIP logout message is received.
    
    Fixes: e69b6c02 ("net: Add support for networking over Thunderbolt cable")
    Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    027d351c
thunderbolt.c 34.6 KB