]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
libafs: GiveUpAllCallBacks at shutdown again
authorAndrew Deason <adeason@sinenomine.net>
Tue, 10 May 2011 18:45:26 +0000 (13:45 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 12 Mar 2014 13:23:57 +0000 (06:23 -0700)
Commit cee2c677d7de66a510d05978e3b41dcd5d8aca78 caused the cache
manager to give up all callbacks at shutdown. But
76158df491f47de56d1febe1d1d2d17d316c9a74 removed the call to
afs_FlushVCBs in afs_shutdown. Put it back.

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

Change-Id: I9c2b309b482a735f5cce57aa7497b67858db2c3e
Reviewed-on: http://gerrit.openafs.org/10855
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_call.c

index 7ba29659c2accdc56fe9c25ddea55254e5b8446d..f15aa8076bf53a313d07184986bf7f741e8ac2c3 100644 (file)
@@ -1387,7 +1387,13 @@ afs_shutdown(void)
     if (afs_shuttingdown)
        return;
 
+    /* Give up all of our callbacks if we can. This must be done before setting
+     * afs_shuttingdown, since it calls afs_InitReq, which will fail if
+     * afs_shuttingdown is set. */
+    afs_FlushVCBs(2);
+
     afs_shuttingdown = 1;
+
     if (afs_cold_shutdown)
        afs_warn("afs: COLD ");
     else