Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142369
b: refs/heads/master
c: 4e69489
h: refs/heads/master
i:
  142367: e34a592
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 4, 2009
1 parent 761cc72 commit 8d636f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62994b2d6beb5f7c59a25bf77e01f191acf74ea2
refs/heads/master: 4e69489a0ac11a9b62a25923975bfc370a30eae5
6 changes: 2 additions & 4 deletions trunk/net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ static struct socket *sock_alloc(void)
inode->i_uid = current_fsuid();
inode->i_gid = current_fsgid();

get_cpu_var(sockets_in_use)++;
put_cpu_var(sockets_in_use);
percpu_add(sockets_in_use, 1);
return sock;
}

Expand Down Expand Up @@ -536,8 +535,7 @@ void sock_release(struct socket *sock)
if (sock->fasync_list)
printk(KERN_ERR "sock_release: fasync list not empty!\n");

get_cpu_var(sockets_in_use)--;
put_cpu_var(sockets_in_use);
percpu_sub(sockets_in_use, 1);
if (!sock->file) {
iput(SOCK_INODE(sock));
return;
Expand Down

0 comments on commit 8d636f4

Please sign in to comment.