On Sat, Apr 01, 2000 at 12:03:57AM +0100, Matthew Kirkwood wrote:
> I thought that was all done at swapon time? Or can Linux
> now deal with memory allocations while writing to disk?
Absolutely we can allocate memory while writing to disk, and that
includes swapping. After all, device drivers may legitimately want
to allocate control blocks for the IO. We have a PF_MEMALLOC flag
in the per-task flags word which lets us avoid getting into problems
with recursive allocations going on --- we never recurse into the
swapper if we allocate memory while in the swapper already.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:30 EST