mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
Properly release GLOCK when trying to mount AFS a second time.
This commit is contained in:
parent
30c69dae28
commit
905b71014b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user