Re: [0/25] Merge pmdisk and swsusp

From: Patrick Mochel
Date: Mon Aug 02 2004 - 00:15:41 EST




On Mon, 19 Jul 2004, Pavel Machek wrote:

> > <mochel@xxxxxxxxxxxxxxxxxx> (04/07/17 1.1865)
> > [swsusp] Remove unneeded suspend_pagedir_lock.
>
> How do you guarantee that while copying pages back and forth,
> interrupts are disabled? They have to be, because memory snapshots are
> no longer atomic.

(This was cleared up in person in Ottawa, but just for the record: )

Interrupts are disabled in swsusp_suspend() and swsusp_resume(), using
local_irq_disable(), instead of doing spin_lock_irq().


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