]> git.baikalelectronics.ru Git - kernel.git/commit
net/packet: remove locking from packet_rcv_has_room()
authorEric Dumazet <edumazet@google.com>
Wed, 12 Jun 2019 16:52:32 +0000 (09:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 01:52:14 +0000 (18:52 -0700)
commit5727c0f127e5f1f5c534161d5b932f1fcf6dcf04
treec49e1fe841e2a01314f4d7454d8472c6fcd7d5df
parentba0d6ebaa939bc38146bd2bc3d1d32141c183059
net/packet: remove locking from packet_rcv_has_room()

__packet_rcv_has_room() can now be run without lock being held.

po->pressure is only a non persistent hint, we can mark
all read/write accesses with READ_ONCE()/WRITE_ONCE()
to document the fact that the field could be written
without any synchronization.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c