Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen-netback: stop the guest rx thread after a fatal error
After commit e9d8b2c (xen-netback: disable rogue vif in kthread context), a fatal (protocol) error would leave the guest Rx thread spinning, wasting CPU time. Commit ecf08d2 (xen-netback: reintroduce guest Rx stall detection) made this even worse by removing a cond_resched() from this path. Since a fatal error is non-recoverable, just allow the guest Rx thread to exit. This requires taking additional refs to the task so the thread exiting early is handled safely. Signed-off-by: David Vrabel <[email protected]> Reported-by: Julien Grall <[email protected]> Tested-by: Julien Grall <[email protected]> Acked-by: Wei Liu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information