OSDN Git Service

ibmvnic: rework to ensure SCRQ entry reads are properly ordered
authorLijun Pan <ljp@linux.ibm.com>
Sat, 30 Jan 2021 01:19:04 +0000 (19:19 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Feb 2021 04:21:12 +0000 (20:21 -0800)
commit665ab1eb18d7e8eaa8377fb8bf4924bfeb63bbce
tree85ab6b88507ea97575cf1e2a1b644fc8f5079e5b
parent1a2b60f6f16527ce404a41ad4d201df9422e9aad
ibmvnic: rework to ensure SCRQ entry reads are properly ordered

Move the dma_rmb() between pending_scrq() and ibmvnic_next_scrq()
into the end of pending_scrq() to save the duplicated code since
this dma_rmb will be used 3 times.

Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Acked-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c