diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-02-12 11:47:24 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-23 16:13:38 -0400 |
commit | 7b54fe61ffd5bfa4e50d371a2415225aa0cbb38e (patch) | |
tree | 6da4eb10c73ca75ff7cc94c11cfb11cd102447c4 /include/net | |
parent | 6aaa67b5f3b9fe24f0c76d0415cc72e5a1137bea (diff) |
SUNRPC: allow svc_recv to break out of 500ms sleep when alloc_page fails
svc_recv() calls alloc_page(), and if it fails it does a 500ms
uninterruptible sleep and then reattempts. There doesn't seem to be any
real reason for this to be uninterruptible, so change it to an
interruptible sleep. Also check for kthread_stop() and signalled() after
setting the task state to avoid races that might lead to sleeping after
kthread_stop() wakes up the task.
I've done some very basic smoke testing with this, but obviously it's
hard to test the actual changes since this all depends on an
alloc_page() call failing.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions