From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karol Kozimor Subject: S3 and S4 fix for 2.5.x XFS Date: Wed, 19 Feb 2003 11:14:18 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20030219101418.GB15374@hell.org.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: swsusp-LcL5texQODR2DW0IdvIQ2g@public.gmane.org Cc: SATOH Fumiyasu , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi, Eric Sandeen 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 #include #include +#include #include #include @@ -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