Commit f5d3d7cc authored by Jeroen Vreeken's avatar Jeroen Vreeken Committed by David S. Miller

[NETROM]: Expire sockets faster on close.

parent 055e2d07
...@@ -269,7 +269,7 @@ void nr_destroy_socket(struct sock *sk) ...@@ -269,7 +269,7 @@ void nr_destroy_socket(struct sock *sk)
atomic_read(&sk->sk_rmem_alloc)) { atomic_read(&sk->sk_rmem_alloc)) {
/* Defer: outstanding buffers */ /* Defer: outstanding buffers */
init_timer(&sk->sk_timer); init_timer(&sk->sk_timer);
sk->sk_timer.expires = jiffies + 10 * HZ; sk->sk_timer.expires = jiffies + 2 * HZ;
sk->sk_timer.function = nr_destroy_timer; sk->sk_timer.function = nr_destroy_timer;
sk->sk_timer.data = (unsigned long)sk; sk->sk_timer.data = (unsigned long)sk;
add_timer(&sk->sk_timer); add_timer(&sk->sk_timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment