]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/af_unix.h
net: unix: fix inflight counting bug in garbage collector
[linux-2.6-omap-h63xx.git] / include / net / af_unix.h
index e0fba269d092234b77f722d39cde870c06fce4ad..c29ff1da8a18ac2dbf905f6bd83a27066e2283e4 100644 (file)
@@ -51,15 +51,15 @@ struct unix_sock {
         struct sock            *peer;
         struct sock            *other;
        struct list_head        link;
-        atomic_t                inflight;
+        atomic_long_t           inflight;
         spinlock_t             lock;
        unsigned int            gc_candidate : 1;
+       unsigned int            gc_maybe_cycle : 1;
         wait_queue_head_t       peer_wait;
 };
 #define unix_sk(__sk) ((struct unix_sock *)__sk)
 
 #ifdef CONFIG_SYSCTL
-extern int sysctl_unix_max_dgram_qlen;
 extern int unix_sysctl_register(struct net *net);
 extern void unix_sysctl_unregister(struct net *net);
 #else