diff options
| author | 2018-02-13 10:47:59 +1100 | |
|---|---|---|
| committer | 2018-02-16 15:19:11 +0100 | |
| commit | c7621ba215b11ca8976d38093768b8630df3d0d6 (patch) | |
| tree | b3fe19ce31bfc9c6f333d663d5e3c8a64f71a2a1 /include/linux/timerqueue.h | |
| parent | staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious (diff) | |
staging: lustre: use wait_event_idle_timeout in ptlrpcd()
We can replace l_wait_event() with
wait_event_idle_timeout() here providing we call the
timeout function when wait_event_idle_timeout() returns zero.
As ptlrpc_expired_set() returns 1, the l_wait_event() aborts of the
first timeout.
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
