public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Andrew Morton <akpm@zip.com.au>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: swsusp: fix error handling in "not enough swap space"
Date: Sun, 29 Feb 2004 14:04:05 +0100	[thread overview]
Message-ID: <20040229130405.GA453@elf.ucw.cz> (raw)

Hi!

Without this, if there's not enough swapspace, suspend fails, but
leaves devices suspended, leading to dead machine. Please apply,

							Pavel

--- tmp/linux/kernel/power/swsusp.c	2004-02-29 13:42:02.000000000 +0100
+++ linux/kernel/power/swsusp.c	2004-02-29 00:34:31.000000000 +0100
@@ -683,7 +683,11 @@
 
 	free_pages((unsigned long) pagedir_nosave, pagedir_order);
 	spin_unlock_irq(&suspend_pagedir_lock);
+
+	device_resume();
+	PRINTK( "Fixing swap signatures... " );
 	mark_swapfiles(((swp_entry_t) {0}), MARK_SWAP_RESUME);
+	PRINTK( "ok\n" );	
 }
 
 /*

 
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

             reply	other threads:[~2004-02-29 13:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-29 13:04 Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-04-24  3:17 swsusp: fix error handling in "not enough swap space" Grzegorz Piotr Jaskiewicz
2004-04-24  3:27 ` Nigel Cunningham
2004-04-24  4:04   ` Grzegorz Piotr Jaskiewicz
2004-04-24  4:13     ` Nigel Cunningham
2004-04-24  4:45       ` Grzegorz Piotr Jaskiewicz
2004-04-24 18:35         ` Pavel Machek
2004-04-25  6:48           ` Grzegorz Piotr Jaskiewicz
2004-04-25 20:46             ` Pavel Machek
2004-04-25  8:51           ` Grzegorz Piotr Jaskiewicz
2004-04-25 20:45             ` Pavel Machek
2004-04-26 20:22               ` Grzegorz Piotr Jaskiewicz
2004-04-26 20:32                 ` Pavel Machek
     [not found]                   ` <408D7555.1000607@pointblue.com.pl>
2004-04-26 20:54                     ` Pavel Machek
2004-04-24 18:32 ` Pavel Machek
2004-04-25  2:53   ` Grzegorz Piotr Jaskiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040229130405.GA453@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox