]> git.baikalelectronics.ru Git - kernel.git/commit
unix: uses an atomic type for scm files accounting
authorPaolo Abeni <pabeni@redhat.com>
Fri, 28 Feb 2020 13:45:21 +0000 (14:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Feb 2020 20:12:53 +0000 (12:12 -0800)
commita000e0aeba1fdd19e7bf2a80724e37abe677ab62
tree70d2549b3467bf6ec5b3e96d7d679e111d1b984c
parent159b7ecdcef200f105459b3b6439f2836f9ac1bc
unix: uses an atomic type for scm files accounting

So the scm_stat_{add,del} helper can be invoked with no
additional lock held.

This clean-up the code a bit and will make the next
patch easier.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_unix.h
net/unix/af_unix.c