Whamcloud - gitweb
LU-10467 ptlrpc: convert waiting in ptlrpc_hr_main()
[fs/lustre-release.git] / lustre / ptlrpc / service.c
index a0eb608..be5df0d 100644 (file)
@@ -2980,7 +2980,7 @@ static int ptlrpc_hr_main(void *arg)
        wake_up(&ptlrpc_hr.hr_waitq);
 
        while (!ptlrpc_hr.hr_stopping) {
-               l_wait_condition(hrt->hrt_waitq, hrt_dont_sleep(hrt, &replies));
+               wait_event_idle(hrt->hrt_waitq, hrt_dont_sleep(hrt, &replies));
 
                while (!list_empty(&replies)) {
                        struct ptlrpc_reply_state *rs;