Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen_console: Fix deadlock in xen_stop_domain_console()
Both xen_stop_domain_console and console thread are trying to acquire global_console_lock and unset current_console at the same time. This can prevent console thread from ever stopping if xen_stop_domain_console acquires the lock first. This patch fixes the issue by unlocking the global_console_lock before joining the console thread, and leaving the job of unsetting the current console to the console thread. Signed-off-by: Mykyta Poturai <[email protected]> Reviewed-by: Volodymyr Babchuk <[email protected]> Reviewed-by: Dmytro Firsov <[email protected]>
- Loading branch information