Thread (2 messages) 2 messages, 2 authors, 2020-10-31

Re: [PATCH net-next] r8169: remove unneeded memory barrier in rtl_tx

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-10-31 23:36:27

On Thu, 29 Oct 2020 18:56:06 +0100 Heiner Kallweit wrote:
tp->dirty_tx isn't changed outside rtl_tx(). Therefore I see no need
to guarantee a specific order of reading tp->dirty_tx and tp->cur_tx.
Having said that we can remove the memory barrier.
In addition use READ_ONCE() when reading tp->cur_tx because it can
change in parallel to rtl_tx().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help