]> git.michaelhowe.org Git - packages/o/openafs.git/commit
SOLARIS: Free vcache mappings on shutdown
authorAndrew Deason <adeason@sinenomine.net>
Tue, 7 Dec 2010 16:50:31 +0000 (10:50 -0600)
committerDerrick Brashear <shadow@dementia.org>
Thu, 10 Mar 2011 19:30:00 +0000 (11:30 -0800)
commit205a787bdb459c3c7d8acf79c6b108120d3a9f0c
tree5509b73bb28e4ca69e742f3c7beb6a7f8e342369
parentd83e8626db9c5dfca0402ab22796b02333503cc9
SOLARIS: Free vcache mappings on shutdown

Right before shutdown, go through all of our vcaches and flush them,
freeing any pages associated with the vcaches. If we don't do this,
pages associated with our vcaches may still be around after we
shutdown and the module is unloaded, causing a panic when the kernel
tries to deference the page's vnode.

Abstract out afs_freevfs() following the gafs_foo/afs_foo convention
from the vnode ops, since we're calling this in two different places.

Reviewed-on: http://gerrit.openafs.org/3472
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 592a33a4787db88993a7bf9d8f5ad8c11a576b56)

Change-Id: I809d10d2eceb7d0db92b3d149b13de0dc9221958
Reviewed-on: http://gerrit.openafs.org/4194
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/SOLARIS/osi_vfsops.c