Re: [PATCH] /proc/scsi/map

Pavel Machek (pavel@ucw.cz)
Wed, 3 Jul 2002 03:01:02 +0200


Hi!

> [ We could also create a swap interface that we skip over when we notify
> these interfaces. Then we walk the tree and save state to the swap
> devices. Then, tell the swap devices to suspend, which can notify the
> devices to actually go to sleep....maybe..]

No.

swsusp works like this

stop all devices
save state
atomically copy memory into my_big_buffer
start all devices
write my_big_buffer into swap
poweroff

It does not need explicit knowledge of where swap is. And I believe it
is reasonable that way.
Pavel

-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
-
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/