Commit a9ab047f authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott

[XFS] Allow the pagebuf daemon to suspend.

SGI Modid: 2.5.x-xfs:slinx:140015a
parent eaa535e7
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include <linux/sysctl.h> #include <linux/sysctl.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/suspend.h>
#include <support/debug.h> #include <support/debug.h>
#include <support/kmem.h> #include <support/kmem.h>
...@@ -1586,6 +1587,10 @@ pagebuf_daemon( ...@@ -1586,6 +1587,10 @@ pagebuf_daemon(
INIT_LIST_HEAD(&tmp); INIT_LIST_HEAD(&tmp);
do { do {
/* swsusp */
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
if (pbd_active == 1) { if (pbd_active == 1) {
del_timer(&pb_daemon_timer); del_timer(&pb_daemon_timer);
pb_daemon_timer.expires = jiffies + pb_daemon_timer.expires = jiffies +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment