]> git.michaelhowe.org Git - packages/o/openafs.git/commit
OpenBSD: allow for more graceful shutdown
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 8 Feb 2010 22:33:38 +0000 (15:33 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Feb 2010 17:11:55 +0000 (09:11 -0800)
commit66470a65e9af601b099189447b0abd8a92b254fa
tree6bfbdf80d65d9bc3982be76702d6aa8afcb5b8ef
parent8553482f63b9f326cf71cf4689f569f96adb2a7c
OpenBSD: allow for more graceful shutdown

A shutdown or unmount of AFS on OpenBSD will invariably result in a kernel
panic. This is because the afs_unmount() routine does not (can not?) force
vnode releases if the vnode is still busy. However, it continues on
nonetheless and dies a horrible death a little later.

This update causes a return from afs_unmount() with EBUSY if all the vnodes
weren't released. This results in error messages on shutdown but the overall
process continues more reliably and reboots, for example, work.

There is likely a better solution to this but at least this is no worse than
a system crash and it doesn't require console (or power button) intervention
so it should do until I have the chance to explore further.

Change-Id: Ia70f83bda748ea3d0b81b341a292e83121446567
Reviewed-on: http://gerrit.openafs.org/1275
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5f39ae64bafe1e2073ff419fe62c2d5a86fc98f5)
Change-Id: I5b74a5b80c6e33ae49ac4f23fb6b3b5d7002b28a
Reviewed-on: http://gerrit.openafs.org/1260
src/afs/OBSD/osi_vfsops.c