tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unconfiguring swap at shutdown

In article <>,
Manuel Bouyer  <> wrote:
>On Wed, Sep 03, 2008 at 02:32:55PM +0000, Christos Zoulas wrote:
>> In article <>,
>> Manuel Bouyer  <> wrote:
>> >On Tue, Sep 02, 2008 at 07:45:43PM -0700, Jason Thorpe wrote:
>> >> Tmpfs?  Do this after file systems have been unmounted?
>> >
>> >No, but the proposed in-kernel swapoff code needs access to /dev, which
>> >may be on a tmpfs. So you can't unmount it before swapoff.
>> Why is that? It does not do a a lookup but accesses the vnode directly
>> from the swap struct.
>Hum, I though I read it'd still need the access to /dev, but I couldn't find
>refeferences to this in this thread. So I may be wrong.
>I think we still may have a circular dependancy between umount and swapoff
>if there is swap on a regular file. 

As I mentioned before, swapoff happens before unmount for that reason.
The only problem is tmpfs, but that has wired memory?


Home | Main Index | Thread Index | Old Index