]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: af_unix: Use batching algorithm in bpf unix iter.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Thu, 13 Jan 2022 00:28:46 +0000 (09:28 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Jan 2022 23:45:06 +0000 (15:45 -0800)
commitbd434f23c8b47e35a64021041eb60b33038d3d66
tree485d58380a9e6d788e3aaf55c32286eb9e5573d2
parentd4c9e7013b4f3557444021c362e272ab4ce66a3f
bpf: af_unix: Use batching algorithm in bpf unix iter.

The commit 152ad7e09df9 ("bpf: tcp: Bpf iter batching and lock_sock")
introduces the batching algorithm to iterate TCP sockets with more
consistency.

This patch uses the same algorithm to iterate AF_UNIX sockets.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Link: https://lore.kernel.org/r/20220113002849.4384-3-kuniyu@amazon.co.jp
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/unix/af_unix.c