Skip to content
  • Paul E. McKenney's avatar
    drivers/net/ethernet/qlogic/qed: Fix __qed_spq_block() ordering · cb7e125e
    Paul E. McKenney authored
    
    
    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: default avatarPaul 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>
    cb7e125e