]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite12aecdf0592bf17caa5dd322a57c8d3c8ce8542
tree85ab6b88507ea97575cf1e2a1b644fc8f5079e5b
parentea49c393dc5349802a693c606f4b16bcfb1b8db0
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