Eric Dumazet
d5ac4232c3
net: add skb_queue_empty_lockless()
...
[ Upstream commit d7d16a8935 ]
Some paths call skb_queue_empty() without holding
the queue lock. We must use a barrier in order
to not let the compiler do strange things, and avoid
KCSAN splats.
Adding a barrier in skb_queue_empty() might be overkill,
I prefer adding a new helper to clearly identify
points where the callers might be lockless. This might
help us finding real bugs.
The corresponding WRITE_ONCE() should add zero cost
for current compilers.
Signed-off-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-10 11:27:46 +01:00
..
2019-09-10 10:33:53 +01:00
2019-09-16 08:22:22 +02:00
2019-05-31 06:46:24 -07:00
2019-08-09 17:52:33 +02:00
2019-10-05 13:09:57 +02:00
2019-10-11 18:21:21 +02:00
2019-07-03 13:14:46 +02:00
2019-10-17 13:45:34 -07:00
2019-05-31 06:46:00 -07:00
2019-06-09 09:17:11 +02:00
2019-10-05 13:10:03 +02:00
2019-08-04 09:30:57 +02:00
2019-07-03 13:14:48 +02:00
2019-05-25 18:23:48 +02:00
2019-10-05 13:09:54 +02:00
2019-08-16 10:12:38 +02:00
2019-08-09 17:52:34 +02:00
2019-08-09 17:52:34 +02:00
2019-08-06 19:06:52 +02:00
2019-08-06 19:06:52 +02:00
2019-06-09 09:17:23 +02:00
2019-06-09 09:17:23 +02:00
2019-06-04 08:02:34 +02:00
2019-06-11 12:20:52 +02:00
2019-07-26 09:14:12 +02:00
2019-07-31 07:27:11 +02:00
2019-09-16 08:22:12 +02:00
2019-08-09 17:52:28 +02:00
2019-06-04 08:02:34 +02:00
2019-07-10 09:53:47 +02:00
2019-07-28 08:29:29 +02:00
2019-05-31 06:46:18 -07:00
2019-11-10 11:27:40 +01:00
2019-09-10 10:33:44 +01:00
2019-05-31 06:46:28 -07:00
2019-07-31 07:26:59 +02:00
2019-10-17 13:45:42 -07:00
2019-10-11 18:21:43 +02:00
2019-08-09 17:52:34 +02:00
2019-08-04 09:30:54 +02:00
2019-07-28 08:29:29 +02:00
2019-06-04 08:02:34 +02:00
2019-06-04 08:02:34 +02:00
2019-07-21 09:03:11 +02:00
2019-08-16 10:12:53 +02:00
2019-06-09 09:17:19 +02:00
2019-09-06 10:22:19 +02:00
2019-06-09 09:17:23 +02:00
2019-05-31 06:46:05 -07:00
2019-06-04 08:02:34 +02:00
2019-06-04 08:02:34 +02:00
2019-09-06 10:22:22 +02:00
2019-09-06 10:22:23 +02:00
2019-06-09 09:17:24 +02:00
2019-05-31 06:46:30 -07:00
2019-05-25 18:23:38 +02:00
2019-07-28 08:29:28 +02:00
2019-06-11 12:20:52 +02:00
2019-06-15 11:54:10 +02:00
2019-10-05 13:10:11 +02:00
2019-07-26 09:14:07 +02:00
2019-08-04 09:30:56 +02:00
2019-06-04 08:02:30 +02:00
2019-11-10 11:27:46 +01:00
2019-05-31 06:46:16 -07:00
2019-06-17 19:51:56 +02:00
2019-05-31 06:46:29 -07:00
2019-07-14 08:11:21 +02:00