Re: Swapping for diskless nodes

Eric W. Biederman
2001-08-10T08:19:00Z

Rik van Riel <riel@conectiva.com.br> writes:

> On 9 Aug 2001, Eric W. Biederman wrote:
>
> > I don't know about that. We already can swap over just about
> > everything because we can swap over the loopback device.
>
> Last I looked the loopback device could deadlock your
> system without you needing to swap over it ;)

It wouldn't suprise me. But the fact remains that in 2.4 we allow it.
And if we allw it there is little excuse for doing it wrong.

Actually except for network cases it looks easier to prevent deadlocks
on the swapping path than with the loop back devices. We can call
aops->prepare_write_out when we place the page in the swap cache
to make certain we aren't over a hole in a file, and there is room in the
filesystem to store the data.

Eric