drivers/net/ethernet/qlogic/qed: Fix __qed_spq_block() ordering
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 9 Oct 2017 16:26:25 +0000 (09:26 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 4 Dec 2017 18:52:52 +0000 (10:52 -0800)
commitcb7e125e03274cffa97d74433c876765efffaf6a
tree5e6be1ed0c2ec7f97e5203636dc5eb6604d8dd56
parenta4bd78ed215873a68869e41fd59543be8ca38e7f
drivers/net/ethernet/qlogic/qed: Fix __qed_spq_block() ordering

The __qed_spq_block() function expects an smp_read_barrier_depends()
to order a prior READ_ONCE() against a later load that does not depend
on the prior READ_ONCE(), an expectation that can fail to be met.
This commit therefore replaces the READ_ONCE() with smp_load_acquire()
and removes the smp_read_barrier_depends().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Ariel Elior <Ariel.Elior@cavium.com>
Cc: <everest-linux-l2@cavium.com>
Cc: <netdev@vger.kernel.org>
drivers/net/ethernet/qlogic/qed/qed_spq.c