diff options
author | NeilBrown <neilb@suse.de> | 2010-10-07 15:29:46 +1100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-11 19:30:28 -0400 |
commit | e33534d54f1fde3e541f64fa5ad0dd379fc45fa7 (patch) | |
tree | d7136fd857a84576a984f2441b7ee03fc9afd24e /kernel/sched_features.h | |
parent | d29068c431599fa96729556846562eb18429092d (diff) | |
download | op-kernel-dev-e33534d54f1fde3e541f64fa5ad0dd379fc45fa7.zip op-kernel-dev-e33534d54f1fde3e541f64fa5ad0dd379fc45fa7.tar.gz |
sunrpc/cache: centralise handling of size limit on deferred list.
We limit the number of 'defer' requests to DFR_MAX.
The imposition of this limit is spread about a bit - sometime we don't
add new things to the list, sometimes we remove old things.
Also it is currently applied to requests which we are 'waiting' for
rather than 'deferring'. This doesn't seem ideal as 'waiting'
requests are naturally limited by the number of threads.
So gather the DFR_MAX handling code to one place and only apply it to
requests that are actually being deferred.
This means that not all 'cache_deferred_req' structures go on the
'cache_defer_list, so we need to be careful when adding and removing
things.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'kernel/sched_features.h')
0 files changed, 0 insertions, 0 deletions