Re: [RFC] New Driver Model for 2.5

Pavel Machek
2001-10-21T18:03:03Z

Hi!

> The problem of suspend-to-disk, which requires, I beleive, that the
> device used for the memory backup, to be state-saved last, is still
> a problem I don't know how to solve. Maybe using flags in the device

Don't care about it. Its easy.

> That would give us the following scenario:
>
> - The device for suspend-to-disk is identified and a flag is set
> in it's device structure. This flag (or a different one to make
> things clear eventually) is "broadcast" all the way up the tree
> so it's parent brigdes/controllers are marked as well.

You don't need this.

> - All devices get "suspend_prepare".
> - All devices get "suspend_save_state" and block normal IOs
> - All devices not marked above get "suspend"

... not needed. You are going powerdown (suspend-to-disk ends in
powerdown, right?), so you don't care about state devices are in. You don't need to suspend them.

You just write state to disk and powerdown, now.
Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org