On Wed, Apr 6, 2011 at 2:16 PM, Matthew Dillon
<dillon@apollo.backplane.com> wrote:
> :I have found a reliable way to trigger it:
> :switch to single user mode
> :mount -a
> :cd /usr/src
> :make installworld && make upgrade && reboot
> :
> :print_uptime() has not been called in my case.
> :
> :Best Regards,
> :sephe
>
> ꀠ㗎mm. 啱f the uptime is not displayed this implies that the
> ꀠ炻fs_unmountall() call is getting stuck.
Yes, vfs_unmountall() blocks the rebooting.
With the following patch:
http://leaf.dragonflybsd.org/~sephe/umountall_print.diff
In single user mode:
make installworld && make upgrade && reboot
....
....
hammer callback start
<---------- ("nobusy callback done" is not logged, and reboot stops here)
Best Regards,
sephe
>
> ꀠ糍ry with the latest master, I made some adjustments that might effect
> ꀠ澑aw device closes. 啱f swapcache is turned on try turning it off
> ꀠꀨthough my latest patch turns it off on shutdown automatically, too).
>
> ꀠ嚒o far I cannot replicate the issue on my test box. 啱 did have
> ꀠ澑eboot issues in past related to swapcache but those are gone now
> ꀠ烀/my recent commits.
>
> ꀠ嘢ther possible causes: tmpfs, vn, usb mounts, procfs, etc.
>
> ꀠ啱f you can reliably replicate the problem you may have to add a bunch
> ꀠ漑f kprintf()'s to the umountall iterator to track down which filesystem
> ꀠ湶s getting stuck. 啱 have included a df of my test box below.
>
> ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀭMatt
>
>
> Filesystem ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ1K-blocks ꀠꀠꀠUsed ꀠꀠ孭vail Capacity 嗰ounted on
> ROOT ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀱ95452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯ
> devfs ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ1 ꀠꀠꀠꀠ1 ꀠꀠꀠꀠꀰ ꀠ100% ꀠꀯdev
> /dev/serno/L41K2H5G.s1a ꀠꀠꀠꀠꀠꀠꀠꀷ74094 ꀠꀲ16628 ꀠꀠ495540 ꀠꀳ0% ꀠꀯboot
> /pfs/@@-1:00001 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯvar
> /pfs/@@-1:00002 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯtmp
> /pfs/@@-1:00003 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯusr
> /pfs/@@-1:00004 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯhome
> /pfs/@@-1:00005 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯusr/obj
> /pfs/@@-1:00006 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯvar/crash
> /pfs/@@-1:00007 ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ195452928 ꀶ4848560 ꀱ30604368 ꀠꀳ3% ꀠꀯvar/tmp
> BUILD ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ104398848 ꀴ2510688 ꀠ61888160 ꀠꀴ1% ꀠꀯbuild3
> procfs ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀴ ꀠꀠꀠꀠ4 ꀠꀠꀠꀠꀰ ꀠ100% ꀠꀯproc
> apollo.backplane.com:/usr/src ꀠꀠꀱ934024704 292436496 1641588208 ꀠꀱ5% ꀠꀯusr/src
> apollo.backplane.com:/usr/src-misc 1934024704 292436496 1641588208 ꀠꀱ5% ꀠꀯusr/src-misc
> apollo.backplane.com:/usr/pkgsrc ꀠ1934024704 292436496 1641588208 ꀠꀱ5% ꀠꀯusr/pkgsrc
> apollo.backplane.com:/netboot1 ꀠꀠ1934024704 292436496 1641588208 ꀠꀱ5% ꀠꀯnetboot1
> test29#
>
>
--
Tomorrow Will Never Die