linux-umount-begin-dont-preclude-afs-put-super-from-usefully-calling-afs-shutdown...
authorDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 04:15:28 +0000 (04:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 04:15:28 +0000 (04:15 +0000)
afs_put_super calls afs_shutdown, which expects to be called with
afs_shuttingdown equal to 0, not 1

src/afs/LINUX/osi_vfsops.c

index f43367f..b291a28 100644 (file)
@@ -335,8 +335,8 @@ int afs_statfs(struct super_block *sbp, struct statfs *statp, int size)
 void 
 afs_umount_begin(struct super_block *sbp)
 {
-    afs_shuttingdown=1;
     afs_put_super(sbp);      
+    afs_shuttingdown=1;
     afs_was_mounted=0;
 }