summaryrefslogtreecommitdiff
path: root/include/linux/rculist.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2018-04-30 07:31:30 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2018-05-31 21:59:19 +0300
commit3ca951b618386321d9396e9e26be7f4235b5cdb2 (patch)
treeeec48e933fe7c8b956687aa689b7641d6a71b8e2 /include/linux/rculist.h
parentf3893491427ff426047d83ef20be3aaa562e3044 (diff)
downloadlinux-3ca951b618386321d9396e9e26be7f4235b5cdb2.tar.xz
NFS: use cond_resched() when restarting walk of delegation list.
In three places we walk the list of delegations for an nfs_client until an interesting one is found, then we act of that delegation and restart the walk. New delegations are added to the end of a list and the interesting delegations are usually old, so in many case we won't repeat a long walk over and over again, but it is possible - particularly if the first server in the list has a large number of uninteresting delegations. In each cache the work done on interesting delegations will often complete without sleeping, so this could loop many times without giving up the CPU. So add a cond_resched() at an appropriate point to avoid hogging the CPU for too long. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/rculist.h')
0 files changed, 0 insertions, 0 deletions