public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* S3 and S4 fix for 2.5.x XFS
@ 2003-02-19 10:14 Karol Kozimor
       [not found] ` <20030219101418.GB15374-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Karol Kozimor @ 2003-02-19 10:14 UTC (permalink / raw)
  To: swsusp-LcL5texQODR2DW0IdvIQ2g
  Cc: SATOH Fumiyasu, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,
Eric Sandeen <sandeen-sJ/iWh9BUns@public.gmane.org> wrote a fix for 2.5.x page_buf.c that is
similar to that for 2.4.x and allows for pagebufd to enter refrigerator
correctly. It seems to work fine for me (2.5.61), though I also suffer 
from some mysterious XFS problems that need further inquiring.

Everyone using XFS and S3 or S4 is highly encouraged to test this patch on
a 2.5.x kernel. The patch is below:

--- /usr/tmp/TmpDir.23920-0/linux/fs/xfs/pagebuf/page_buf.c_1.94        Tue Feb 18 20:43:38 2003
+++ linux/fs/xfs/pagebuf/page_buf.c     Tue Feb 18 20:34:50 2003
@@ -57,6 +57,7 @@
 #include <linux/sysctl.h>
 #include <linux/proc_fs.h>
 #include <linux/workqueue.h>
+#include <linux/suspend.h>

 #include <support/debug.h>
 #include <support/kmem.h>
@@ -1591,6 +1592,9 @@

        INIT_LIST_HEAD(&tmp);
        do {
+               if (current->flags & PF_FREEZE)
+                       refrigerator(PF_IOTHREAD);
+
                if (pbd_active == 1) {
                        del_timer(&pb_daemon_timer);
                        pb_daemon_timer.expires = jiffies +




-- 
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-19 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19 10:14 S3 and S4 fix for 2.5.x XFS Karol Kozimor
     [not found] ` <20030219101418.GB15374-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-02-19 10:35   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox