mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[AF_UNIX]: Make unix_tot_inflight counter non-atomic
This counter is _always_ modified under the unix_gc_lock spinlock, so its atomicity can be provided w/o additional efforts. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8032b46489
commit
9305cfa444
3 changed files with 5 additions and 5 deletions
|
@ -457,7 +457,7 @@ static int unix_release_sock (struct sock *sk, int embrion)
|
|||
* What the above comment does talk about? --ANK(980817)
|
||||
*/
|
||||
|
||||
if (atomic_read(&unix_tot_inflight))
|
||||
if (unix_tot_inflight)
|
||||
unix_gc(); /* Garbage collect fds */
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue