Re: [RFC] New Driver Model for 2.5

From: Pavel Machek (pavel@Elf.ucw.cz)
Date: Sun Oct 21 2001 - 12:09:02 EST


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
-
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/



This archive was generated by hypermail 2b29 : Tue Oct 23 2001 - 21:00:27 EST