diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2015-03-20 20:15:14 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-04-23 20:38:07 +0200 |
commit | 5d05e54af3cdbb13cf19c557ff2184781b91a22c (patch) | |
tree | f67bf3bdb8ad1fd4cc61ec8d0e23dfafdcbd3f8b /Documentation/hwmon/da9055 | |
parent | NFS: Reduce time spent holding the i_mutex during fallocate() (diff) | |
download | linux-5d05e54af3cdbb13cf19c557ff2184781b91a22c.tar.xz linux-5d05e54af3cdbb13cf19c557ff2184781b91a22c.zip |
nfs: fix high load average due to callback thread sleeping
Chuck pointed out a problem that crept in with commit 6ffa30d3f734 (nfs:
don't call blocking operations while !TASK_RUNNING). Linux counts tasks
in uninterruptible sleep against the load average, so this caused the
system's load average to be pinned at at least 1 when there was a
NFSv4.1+ mount active.
Not a huge problem, but it's probably worth fixing before we get too
many complaints about it. This patch converts the code back to use
TASK_INTERRUPTIBLE sleep, simply has it flush any signals on each loop
iteration. In practice no one should really be signalling this thread at
all, so I think this is reasonably safe.
With this change, there's also no need to game the hung task watchdog so
we can also convert the schedule_timeout call back to a normal schedule.
Cc: <stable@vger.kernel.org>
Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Fixes: commit 6ffa30d3f734 (“nfs: don't call blocking . . .”)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'Documentation/hwmon/da9055')
0 files changed, 0 insertions, 0 deletions