It is not necessary to hold vn_start_write/vn_finished_write around VOP_REVOKE.
This commit is contained in:
parent
718fe8e2bf
commit
136211e58e
@ -3715,11 +3715,8 @@ revoke(td, uap)
|
||||
if (error)
|
||||
goto out;
|
||||
}
|
||||
if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
|
||||
goto out;
|
||||
if (vcount(vp) > 1)
|
||||
VOP_REVOKE(vp, REVOKEALL);
|
||||
vn_finished_write(mp);
|
||||
out:
|
||||
vrele(vp);
|
||||
return (error);
|
||||
|
@ -3715,11 +3715,8 @@ revoke(td, uap)
|
||||
if (error)
|
||||
goto out;
|
||||
}
|
||||
if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
|
||||
goto out;
|
||||
if (vcount(vp) > 1)
|
||||
VOP_REVOKE(vp, REVOKEALL);
|
||||
vn_finished_write(mp);
|
||||
out:
|
||||
vrele(vp);
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user