Drop the Giant lock before calling zfs_domount(), which is held when
mounting root file system.
This commit is contained in:
parent
f92cb15e7b
commit
5fc5d6ed61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168510
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user