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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:23:30 +0000 (19:23 -0700)
commit6117561e1bb30b2fe7f51e1961f34dbedd0bec8a
tree1450c8fa6cec6f9c96ce14b049959a4d6d2d8d9c
parent1086ca3a63a3af6b8a722fff55da46f111bc40ee
qed: iWARP - Use READ_ONCE and smp_store_release to access ep->state

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>
drivers/net/ethernet/qlogic/qed/qed_iwarp.c