Commit a4cab1b6 authored by Juergen Gross's avatar Juergen Gross Committed by Zheng Zengkai
Browse files

xen/netback: avoid race in xenvif_rx_ring_slots_available()



stable inclusion
from stable-5.10.17
commit 50ad6fc36aed44d2b54c9530264e74caf051e5d2
bugzilla: 48169

--------------------------------

[ Upstream commit ec7d8e7d ]

Since commit 23025393 ("xen/netback: use lateeoi irq binding")
xenvif_rx_ring_slots_available() is no longer called only from the rx
queue kernel thread, so it needs to access the rx queue with the
associated queue held.

Reported-by: default avatarIgor Druzhinin <igor.druzhinin@citrix.com>
Fixes: 23025393 ("xen/netback: use lateeoi irq binding")
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Acked-by: default avatarWei Liu <wl@xen.org>
Link: https://lore.kernel.org/r/20210202070938.7863-1-jgross@suse.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 9a3be9ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment