From ac85550c9008baeba5cfdb400afb660fa85b6917 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 18 Mar 2010 20:17:02 -0400 Subject: [PATCH] aix mount failure unlock and seterror set an error usefully and drop the vfs lock Change-Id: I9d901b50722c09e1b131077f0b19e2831e6a44c8 Reviewed-on: http://gerrit.openafs.org/1590 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/AIX/osi_vfsops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/afs/AIX/osi_vfsops.c b/src/afs/AIX/osi_vfsops.c index b2cd97e3d..a3dd50f68 100644 --- a/src/afs/AIX/osi_vfsops.c +++ b/src/afs/AIX/osi_vfsops.c @@ -66,8 +66,10 @@ afs_mount(afsp, path, data) afsp->vfs_fsid.val[1] = AFS_VFSFSID; /* For AFS, we don't allow file over file mounts. */ - if (afsp->vfs_mntdover->v_type != VDIR) - return (ENOTDIR); + if (afsp->vfs_mntdover->v_type != VDIR) { + AFS_VFSUNLOCK(); + return (setuerror(ENOTDIR)); + } /* try to get the root vnode, but don't worry if you don't. The actual * setting of the root vnode (vfs_mntd) is done in afs_root, so that it * get re-eval'd at the right time if things aren't working when we -- 2.39.5