aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 80a4574028f1..e2951506434d 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -936,7 +936,7 @@ int bdi_writeback_thread(void *data)
936 936
937 trace_writeback_thread_start(bdi); 937 trace_writeback_thread_start(bdi);
938 938
939 while (!kthread_should_stop()) { 939 while (!kthread_freezable_should_stop(NULL)) {
940 /* 940 /*
941 * Remove own delayed wake-up timer, since we are already awake 941 * Remove own delayed wake-up timer, since we are already awake
942 * and we'll take care of the preriodic write-back. 942 * and we'll take care of the preriodic write-back.
@@ -966,8 +966,6 @@ int bdi_writeback_thread(void *data)
966 */ 966 */
967 schedule(); 967 schedule();
968 } 968 }
969
970 try_to_freeze();
971 } 969 }
972 970
973 /* Flush any work that raced with us exiting */ 971 /* Flush any work that raced with us exiting */