Properly release GLOCK when trying to mount AFS a second time.

This commit is contained in:
Nickolai Zeldovich 2002-01-29 17:26:26 +00:00
parent 30c69dae28
commit 905b71014b

View File

@ -78,6 +78,7 @@ struct super_block *afs_read_super(struct super_block *sb, void *data,
AFS_GLOCK(); AFS_GLOCK();
if (afs_was_mounted) { if (afs_was_mounted) {
printf("You must reload the AFS kernel extensions before remounting AFS.\n"); printf("You must reload the AFS kernel extensions before remounting AFS.\n");
AFS_GUNLOCK();
return NULL; return NULL;
} }
afs_was_mounted = 1; afs_was_mounted = 1;