NetBSD-Bugs archive

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

Re: kern/54969 (Disk cache is no longer flushed on shutdown)



The following reply was made to PR kern/54969; it has been noted by GNATS.

From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek%gmail.com@localhost>
To: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
Cc: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>, hannken%netbsd.org@localhost
Subject: Re: kern/54969 (Disk cache is no longer flushed on shutdown)
Date: Fri, 17 Jul 2020 23:44:34 +0200

 Le ven. 17 juil. 2020 =C3=A0 17:11, J. Hannken-Illjes
 <hannken%eis.cs.tu-bs.de@localhost> a =C3=A9crit :
 >
 > > On 17. Jul 2020, at 12:35, Jarom=C3=ADr Dole=C4=8Dek <jaromir.dolecek@g=
 mail.com> wrote:
 > >
 > > Any update on this? Rediscovered this still open PR when searching for
 > > bnx(4) PRs.
 >
 > The current behaviour is the result of a longer discussion
 > "Fixing swap1_stop" in 2017, starting at
 >
 > http://mail-index.netbsd.org/current-users/2017/08/03/msg032129.html
 >
 > The submitter wants to halt without disabling swap and the
 > unclosed swap device prevents the root device from closing.
 >
 > This is intended and using "shutdown" instead of "halt" works.
 
 I think it's the kernel's responsibility to ensure all the swap is
 disabled and devices properly closed, regardless if userland managed
 to do this or not, i.e. regardless if shutdown was via 'shutdown' or
 'halt'
 
 At the time the shutdown code runs and devices are detached, no user
 processes run any longer. Swap can't be needed to finish shutdown -
 the system state during the late shutdown phase is similar as during
 boot, which also doesn't have swap.
 
 How hard it would be to change this so the swap is actually disabled
 before detaching the physical devices?
 
 Jaromir
 


Home | Main Index | Thread Index | Old Index