]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
qed: iWARP - Use READ_ONCE and smp_store_release to access ep->state
authorMichal Kalderon <michal.kalderon@marvell.com>
Thu, 13 Jun 2019 08:29:40 +0000 (11:29 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit28e05d2c534c83516c78ff86a2df3fa4f487b8cb
tree273aa1a4c13cb2a713c0f315c7c4cc8f6061e6e1
parent25db6a0ba177834f7682188e434c8601001042c4
qed: iWARP - Use READ_ONCE and smp_store_release to access ep->state

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 6117561e1bb30b2fe7f51e1961f34dbedd0bec8a ]

Destroy QP waits for it's ep object state to be set to CLOSED
before proceeding. ep->state can be updated from a different
context. Add smp_store_release/READ_ONCE to synchronize.

Fixes: fc4c6065e661 ("qed: iWARP implement disconnect flows")
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/qlogic/qed/qed_iwarp.c