DAFS: avoid saving fileserver state when panicing
authorAndrew Deason <adeason@sinenomine.net>
Thu, 17 Dec 2009 19:59:57 +0000 (13:59 -0600)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 12 Jan 2010 18:26:43 +0000 (10:26 -0800)
commit7c24f660474dea82a96e6c65883e53c9ad77379f
treeac2f2b8f77601c2fb242352140691ff44ecc53cc
parentfe07f017f75b2ce0f783bbd8f31eb5b1bcd7c61b
DAFS: avoid saving fileserver state when panicing

When ShutDownAndCore is called with dopanic=1, avoid trying to save
fileserver state. When we are panic'ing it is very possible that the
thread that called ShutDownAndCore is one of the background threads we
are waiting for, or that the calling thread is holding H_LOCK. Since we
are panicing, the fileserver state is probably not consistent anyway, so
just avoid trying to save state altogether, and avoid a possible
deadlock.

Change-Id: If727808bfdfda74a4ec0e65b27ef9c77fbee4aae
Reviewed-on: http://gerrit.openafs.org/997
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/viced.c