SUNRPC: change how svc threads are asked to exit.
[linux-block.git] / fs / nfs / callback.c
index 42a0c2f1e78565bc31b3faedf96bcaa9b0f7a585..4ffa1f469e90a954c28b9e562722bd4df78fd69a 100644 (file)
@@ -78,7 +78,7 @@ nfs4_callback_svc(void *vrqstp)
 
        set_freezable();
 
-       while (!kthread_should_stop())
+       while (!svc_thread_should_stop(rqstp))
                svc_recv(rqstp);
 
        svc_exit_thread(rqstp);