diff options
| author | NeilBrown <[email protected]> | 2018-02-13 10:47:59 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-02-16 15:19:11 +0100 |
| commit | 4796293a7a0b17cb9223070fd25b009257fb5729 (patch) | |
| tree | eca3c30100aa74f5601d9c8ab9246ea3eea87744 /tools/perf/scripts/python | |
| parent | 60f51d59744c09d25307d2351ec2ac694c741c42 (diff) | |
staging: lustre: simplify waiting in ptlrpc_invalidate_import()
This waiter currently wakes up every second to re-test if
imp_flight is zero. If we ensure wakeup is called whenever
imp_flight is decremented to zero, we can just have a simple
wait_event_idle_timeout().
So add a wake_up_all to the one place it is missing, and simplify
the wait_event.
Reviewed-by: James Simmons <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Patrick Farrell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions