Re: [PATCH net-next] net-next/hinic: Fix a case of Tx Queue is Stopped forever

From: David Miller
Date: Thu Sep 28 2017 - 13:27:22 EST


From: Aviad Krawczyk <aviad.krawczyk@xxxxxxxxxx>
Date: Wed, 27 Sep 2017 02:11:33 +0800

> Fix the following scenario:
> 1. tx_free_poll is running on cpu X
> 2. xmit function is running on cpu Y and fails to get sq wqe
> 3. tx_free_poll frees wqes on cpu X and checks the queue is not stopped
> 4. xmit function stops the queue after failed to get sq wqe
> 5. The queue is stopped forever
>
> Signed-off-by: Aviad Krawczyk <aviad.krawczyk@xxxxxxxxxx>

Applied.