patch-2.3.9 linux/net/sunrpc/xprt.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.8/linux/net/sunrpc/xprt.c linux/net/sunrpc/xprt.c
@@ -42,7 +42,6 @@
 #define __KERNEL_SYSCALLS__
 
 #include <linux/version.h>
-#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/malloc.h>
 #include <linux/sched.h>
@@ -1456,7 +1455,7 @@
 	proto = (sock->type == SOCK_DGRAM)? IPPROTO_UDP : IPPROTO_TCP;
 	if ((xprt = xprt_setup(sock, proto, ap, to)) != NULL) {
 		xprt->file = file;
-		file->f_count++;
+		atomic_inc(&file->f_count);
 	}
 
 	return xprt;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)