Drop the Giant lock before calling zfs_domount(), which is held when

mounting root file system.
This commit is contained in:
Pawel Jakub Dawidek 2007-04-09 00:02:11 +00:00
parent f92cb15e7b
commit 5fc5d6ed61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168510
2 changed files with 8 additions and 2 deletions

View File

@ -598,7 +598,10 @@ zfs_mount(vfs_t *vfsp, kthread_t *td)
if (vfs_getopt(vfsp->mnt_optnew, "from", (void **)&from, NULL))
return (EINVAL);
return (zfs_domount(vfsp, from, td));
DROP_GIANT();
error = zfs_domount(vfsp, from, td);
PICKUP_GIANT();
return (error);
}
static int

View File

@ -598,7 +598,10 @@ zfs_mount(vfs_t *vfsp, kthread_t *td)
if (vfs_getopt(vfsp->mnt_optnew, "from", (void **)&from, NULL))
return (EINVAL);
return (zfs_domount(vfsp, from, td));
DROP_GIANT();
error = zfs_domount(vfsp, from, td);
PICKUP_GIANT();
return (error);
}
static int