Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: b44: Use kernel DMA addresses for the kernel DMA API forcedeth: Fix resume from hibernation regression. xfrm: fix fragmentation on inter family tunnels ibm_newemac: Fix dangerous struct assumption gigaset: documentation update gigaset: in file ops, check for device disconnect before anything else bas_gigaset: use tasklet_hi_schedule for timing critical tasklets net/802/fddi.c: add MODULE_LICENSE smsc911x: remove unused #include <linux/version.h> axnet_cs: fix phy_id detection for bogus Asix chip. bnx2: Use request_firmware() b44: Fix sizes passed to b44_sync_dma_desc_for_{device,cpu}() socket: use percpu_add() while updating sockets_in_use virtio_net: Set the mac config only when VIRITO_NET_F_MAC myri_sbus: use request_firmware e1000: fix loss of multicast packets vxge: should include tcp.h Conflict in firmware/WHENCE (SCSI vs net firmware)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
Reference in New Issue
Block a user