Re: Swapping for diskless nodes

Eric W. Biederman (ebiederm@xmission.com)
10 Aug 2001 02:11:46 -0600


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