diff options
author | Liang Zhen <[email protected]> | 2015-02-01 21:52:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-02-07 17:27:16 +0800 |
commit | fa55c6a4b41cd4fd240debe719b205056b04a0bf (patch) | |
tree | f4c7db0b26bebe225182d174f143c8e576bba75c /tools/perf/scripts/python/futex-contention.py | |
parent | b47ea4bbfefac60ba24ae4ada637f997ed694716 (diff) |
staging/lustre/ptlrpc: avoid list scan in ptlrpcd_check
ptlrpcd_check() always scan all requests on ptlrpc_request_set
and try to finish completed requests, this is low efficiency.
Even worse, l_wait_event() always checks condition for twice
before sleeping and one more time after waking up, which means
it will call ptlrpcd_check() for three times in each loop.
This patch will move completed requests at the head of list
in ptlrpc_check_set(), with this change ptlrpcd_check doesn't
need to scan all requests anymore.
Signed-off-by: Liang Zhen <[email protected]>
Reviewed-on: http://review.whamcloud.com/11513
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5548
Reviewed-by: Bobi Jam <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Reviewed-by: Johann Lombardi <[email protected]>
Signed-off-by: Oleg Drokin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions