Re: [RFC] New Driver Model for 2.5

Linus Torvalds (torvalds@transmeta.com)
Wed, 24 Oct 2001 08:56:57 -0700 (PDT)


On Wed, 24 Oct 2001, Alan Cox wrote:
>
> > call might block for some device information, that does not mean that it
> > can allocate memory with GFP_KERNEL, for example: when we shut off device
> > X, the disk may have been prepared for shutdown already, and the VM layer
> > cannot do any IO. So the suspend (and resume) function have to use
> > GFP_NOIO for their allocations - _regardless_ of any other device issues.
>
> So I have to write a whole extra set of code paths to duplicate normal
> functionality during power off

If that ends up being a problem, we can just make alloc_pages turn off the
IO bits on suspend. Easy enough..

Although I think you're making the problem bigger than it is. Most of the
suspend stuff should not need any "normal functionality" at all.

Linus

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