Assert Giant in vn_start_write() and vn_finished_write().
This commit is contained in:
parent
e5572b4b7c
commit
e79962dbce
@ -929,6 +929,8 @@ vn_start_write(vp, mpp, flags)
|
||||
struct mount *mp;
|
||||
int error;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
/*
|
||||
* If a vnode is provided, get and return the mount point that
|
||||
* to which it will write.
|
||||
@ -1007,6 +1009,8 @@ vn_finished_write(mp)
|
||||
struct mount *mp;
|
||||
{
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
if (mp == NULL)
|
||||
return;
|
||||
mp->mnt_writeopcount--;
|
||||
|
Loading…
Reference in New Issue
Block a user