- Honor the flags argument passed to null_root(). The filesystem below

us will decide whether or not to grab a real shared lock.
This commit is contained in:
Jeff Roberson 2005-04-11 11:16:29 +00:00
parent 0ba01198fc
commit 316ec7bb7f

View File

@ -248,7 +248,7 @@ nullfs_root(mp, flags, vpp, td)
return (EDEADLK);
}
#endif
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
vn_lock(vp, flags | LK_RETRY, td);
*vpp = vp;
return 0;
}