Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95891
b: refs/heads/master
c: 50aab54
h: refs/heads/master
i:
  95889: 6a31f74
  95887: 21815fa
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed May 2, 2008
1 parent e426735 commit 30d2eb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: 78e92b99ec4eb73755abd4e357b0b211eadafd88
refs/heads/master: 50aab54f3056ba28afc681f71adee41c399dde1e
3 changes: 2 additions & 1 deletion trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,12 @@ static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen)
static int warned __read_mostly;

*timeo_p = 0;
if (warned < 10 && net_ratelimit())
if (warned < 10 && net_ratelimit()) {
warned++;
printk(KERN_INFO "sock_set_timeout: `%s' (pid %d) "
"tries to set negative timeout\n",
current->comm, task_pid_nr(current));
}
return 0;
}
*timeo_p = MAX_SCHEDULE_TIMEOUT;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/rxrpc/ar-transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ void rxrpc_put_transport(struct rxrpc_transport *trans)
ASSERTCMP(atomic_read(&trans->usage), >, 0);

trans->put_time = get_seconds();
if (unlikely(atomic_dec_and_test(&trans->usage)))
if (unlikely(atomic_dec_and_test(&trans->usage))) {
_debug("zombie");
/* let the reaper determine the timeout to avoid a race with
* overextending the timeout if the reaper is running at the
* same time */
rxrpc_queue_delayed_work(&rxrpc_transport_reap, 0);
}
_leave("");
}

Expand Down

0 comments on commit 30d2eb5

Please sign in to comment.