From: Nickolai Zeldovich Date: Tue, 29 Jan 2002 19:45:07 +0000 (+0000) Subject: STABLE12-linux-gunlock-when-mounting-twice-20020129 X-Git-Tag: openafs-stable-1_2_3~4 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1813cc8f7d85439e7b0385854034f6cd867b74ba;p=packages%2Fo%2Fopenafs.git STABLE12-linux-gunlock-when-mounting-twice-20020129 Properly release GLOCK when trying to mount AFS a second time. (cherry picked from commit 905b71014b9166cc3ba7b921623a838ffbaa18b7) --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index 6c3f8ce9f..66470d615 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -78,6 +78,7 @@ struct super_block *afs_read_super(struct super_block *sb, void *data, AFS_GLOCK(); if (afs_was_mounted) { printf("You must reload the AFS kernel extensions before remounting AFS.\n"); + AFS_GUNLOCK(); return NULL; } afs_was_mounted = 1;