aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2008-08-20 16:54:44 -0700
committerIngo Molnar <[email protected]>2008-08-22 15:17:31 +0200
commit93dcf55f828b035fc93fc19eb03c1390e1e6d570 (patch)
tree8a5b2ee5c5bb664ff856483244cec1f249a129a3 /net/unix/sysctl_net_unix.c
parentf31e11d87a5d7601636710195891ba462ad99f11 (diff)
wait_task_inactive: "improve" the returned value for ->nvcsw == 0
wait_task_inactive() returns 1 when p->nvcsw == 0 || p->nvcsw == 1. This means that two subsequent calls can return the same number while the task was scheduled in between. Change the code to return "nvcsw | LONG_MIN" instead of "nvcsw ?: 1", now the overlap always needs LONG_MAX schedules. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions