[PATCH 09/16] staging: lustre: simplify waiting in ptlrpc_invalidate_import()

2017-12-17 Thread NeilBrown
This wait current 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_timeout(). So add a wake_up_all to the one place it is missing, and simplify the wait_event. Signed-off-by:

[PATCH 09/16] staging: lustre: simplify waiting in ptlrpc_invalidate_import()

2017-12-17 Thread NeilBrown
This wait current 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_timeout(). So add a wake_up_all to the one place it is missing, and simplify the wait_event. Signed-off-by: