]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: Acquire/Release per-netns hash table's locks.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 21 Jun 2022 17:19:11 +0000 (10:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:59:43 +0000 (12:59 +0100)
commita8b27c286e01868602e8e76211cc1fe9703b6328
treeb6a8cd6babb1b98c4fdee205471d5bb01c63cd0b
parent27caacd5eea6f1fae3f6b5697bcdeced254689b3
af_unix: Acquire/Release per-netns hash table's locks.

This commit adds extra spin_lock/spin_unlock() for a per-netns
hash table inside the existing ones for unix_table_locks.

As of this commit, sockets are still linked in the global hash
table.  After putting sockets in a per-netns hash table and
removing the old one in the next patch, we remove the global
locks in the last patch.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
net/unix/diag.c