Thread (11 messages) flat view 11 messages, 4 authors, 2017-02-07

Re: [PATCH net-next] bridge: avoid unnecessary read of jiffies

From: Nikolay Aleksandrov via Bridge <hidden>
Date: 2017-02-07 16:56:59
Also in: bridge

On 07/02/17 17:46, Stephen Hemminger wrote:
Jiffies is volatile so read it once.

Signed-off-by: Stephen Hemminger <redacted>
---
 net/bridge/br_fdb.c   | 6 ++++--
 net/bridge/br_input.c | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
Yep, good catch. Maybe you can use READ_ONCE() even though it's not needed just
to show why it's done this way.

Acked-by: Nikolay Aleksandrov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help