Merge branch 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[platform/kernel/linux-rpi.git] / fs / xfs / xfs_buf.c
index cf0ac05..ce6249d 100644 (file)
@@ -1701,12 +1701,8 @@ xfsbufd(
                struct list_head tmp;
                struct blk_plug plug;
 
-               if (unlikely(freezing(current))) {
-                       set_bit(XBT_FORCE_SLEEP, &target->bt_flags);
-                       refrigerator();
-               } else {
-                       clear_bit(XBT_FORCE_SLEEP, &target->bt_flags);
-               }
+               if (unlikely(freezing(current)))
+                       try_to_freeze();
 
                /* sleep for a long time if there is nothing to do. */
                if (list_empty(&target->bt_delwri_queue))