diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-10 22:06:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-10 22:06:01 -0800 |
commit | 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8 (patch) | |
tree | 957551b7016caedcb6f85ec733e6a14d6707096f /net/unix/af_unix.c | |
parent | 8032b46489e50ef8f3992159abd0349b5b8e476c (diff) | |
download | op-kernel-dev-9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8.zip op-kernel-dev-9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8.tar.gz |
[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>
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 515e7a6..ab9048a 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -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; |