disable some mediatekl custom warnings
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / xfs / xfs_trans_ail.c
index 0eda7254305f3c5a6524a378596215c8cf861140..1f2b515d55f1f26a737a2bf7bb4abcc543082da5 100644 (file)
@@ -511,9 +511,10 @@ xfsaild(
        struct xfs_ail  *ailp = data;
        long            tout = 0;       /* milliseconds */
 
+       set_freezable();
        current->flags |= PF_MEMALLOC;
 
-       while (!kthread_should_stop()) {
+       while (!kthread_freezable_should_stop(NULL)) {
                if (tout && tout <= 20)
                        __set_current_state(TASK_KILLABLE);
                else
@@ -535,6 +536,7 @@ xfsaild(
                    ailp->xa_target == ailp->xa_target_prev) {
                        spin_unlock(&ailp->xa_lock);
                        schedule();
+                       try_to_freeze();
                        tout = 0;
                        continue;
                }