diff options
| author | NeilBrown <[email protected]> | 2018-02-20 13:23:38 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-02-22 15:06:36 +0100 |
| commit | 40f5bd35015501c2964cb3450b52273c1ae36ba2 (patch) | |
| tree | 6269d88142faebf12a08ce23a811986204dc6368 /tools/perf/scripts/python | |
| parent | daa5611c716a6dbd234c7ebe4ed2c05eeb96b538 (diff) | |
staging: lustre: fid: use wait_event_cmd()
Rather than open-coding a wait event loop twice,
use wait_event_cmd() to wait, dropping the spinlock
over schedule().
This does require duplicating part of the wait
condition, but that is just three tests on values that
are in registers or in cache, so the cost is small
and the increased readability is large.
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions