Re: 2.4.19-pre8-ac5 swsusp panic

fchabaud@free.fr
Sun, 26 May 2002 14:03:33 +0200 (CEST)


Le 26 Mai, Pour: matthias.andree@stud.uni-dortmund.de a écrit :
> Le 26 Mai, Matthias Andree a écrit :
>> On Sat, 25 May 2002, fchabaud@free.fr wrote:
>>
>>> Le 24 Mai, Matthias Andree a écrit :
>>> > I tried SysRq-D and finally got a kernel "panic: Request while ide driver
>>> > is blocked?"
>>> >
>>> > Before that, I saw "waiting for tasks to stop... suspending kreiserfsd",
>>> > nfsd exiting, "Freeing memory", "Syncing disks beofre copy", then some
>>> > "Probem while suspending", then some "Resume" and finally the panic.
>>> >
>>> > It may be worth noting that one swap partition is on a SCSI drive, and
>>> > that my IDE drives were in standby (not idle) mode, i. e. their spindle
>>> > motors were stopped.
>>>
>>> AFAIK swap partition under SCSI is not supported for the moment.
>>
>> Gee. Swsusp should know when it must panic later and not start in the
>> first place. If that's true: swsusp people, consider this a feature
>> request ;-)
>>
>
> I'll do it. Besides I don't imagine it's too difficult to support SCSI,
> but I had no time before for doing this.

To prevent problems with SCSI, maybe something like that ?

Index: suspend.c
===================================================================
RCS file: /home/cvs/linux-src/kernel/Attic/suspend.c,v
retrieving revision 1.3
diff -u -r1.3 suspend.c
--- suspend.c 2002/05/26 11:49:24 1.3
+++ suspend.c 2002/05/26 11:56:25
@@ -745,6 +745,9 @@
#ifdef CONFIG_BLK_DEV_IDE
ide_disk_unsuspend();
#endif
+#ifdef CONFIG_BLK_DEV_SD
+# error Do not use SCSI swap partition while using software suspend
+#endif
}

/* Called from process context */
@@ -753,7 +756,7 @@
#ifdef CONFIG_BLK_DEV_IDE
ide_disk_suspend();
#else
-#error Are you sure your disk driver supports suspend?
+# error Are you sure your disk driver supports suspend?
#endif
if(!pm_suspend_state) {
if(pm_send_all(PM_SUSPEND,(void *)3)) {

--
Florent Chabaud         ___________________________________
SGDN/DCSSI/SDS/LTI     | florent.chabaud@polytechnique.org
http://www.ssi.gouv.fr | http://fchabaud.free.fr

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/