diff options
author | Lijun Pan <ljp@linux.ibm.com> | 2021-01-30 02:19:05 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-02 05:21:12 +0100 |
commit | 2719cb445da5fec698e961abdf75cf9e4d61fba4 (patch) | |
tree | ee0204797ce611fa7f4612782439daf32046e4e2 /drivers/net/ethernet/ibm | |
parent | ibmvnic: rework to ensure SCRQ entry reads are properly ordered (diff) | |
download | linux-2719cb445da5fec698e961abdf75cf9e4d61fba4.tar.xz linux-2719cb445da5fec698e961abdf75cf9e4d61fba4.zip |
ibmvnic: remove unnecessary rmb() inside ibmvnic_poll
rmb() can be removed since:
1. pending_scrq() has dma_rmb() at the function end;
2. dma_rmb(), though weaker, is enough here.
Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Acked-by: Dwip Banerjee <dnbanerg@us.ibm.com>
Acked-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 331ebca2f57a..0ed169ef1cfc 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -2510,7 +2510,6 @@ restart_poll: if (napi_complete_done(napi, frames_processed)) { enable_scrq_irq(adapter, rx_scrq); if (pending_scrq(adapter, rx_scrq)) { - rmb(); if (napi_reschedule(napi)) { disable_scrq_irq(adapter, rx_scrq); goto restart_poll; |