mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
As LK_EXCLUPGRADE is used in conjuction with LK_NOWAIT, LK_UPGRADE becames
equivalent with this and so operate the switch. That call is the only one remaining LK_EXCLUPGRADE consumer and removing it will prepare the ground for LK_EXCLUPGRADE axing and further lockmgr improvements. Discussed with: jeff, ups
This commit is contained in:
parent
716a237292
commit
98e4f2e2bf
@ -2210,7 +2210,7 @@ vput(struct vnode *vp)
|
||||
v_decr_useonly(vp);
|
||||
vp->v_iflag |= VI_OWEINACT;
|
||||
if (VOP_ISLOCKED(vp, NULL) != LK_EXCLUSIVE) {
|
||||
error = VOP_LOCK(vp, LK_EXCLUPGRADE|LK_INTERLOCK|LK_NOWAIT, td);
|
||||
error = VOP_LOCK(vp, LK_UPGRADE|LK_INTERLOCK|LK_NOWAIT, td);
|
||||
VI_LOCK(vp);
|
||||
if (error) {
|
||||
if (vp->v_usecount > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user