From ade42b557a6e29c3d17a61b1535d99af10e379be Mon Sep 17 00:00:00 2001 From: Sebastien Roy Date: Thu, 27 Apr 2017 22:46:23 -0700 Subject: 8064 need a static DTrace probe in VN_HOLD Reviewed by: Pavel Zakharov Reviewed by: Prakash Surya Reviewed by: Prashanth Sreenivasa Reviewed by: Matthew Ahrens Approved by: Robert Mustacchi --- usr/src/uts/common/os/contract.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/src/uts/common/os/contract.c') diff --git a/usr/src/uts/common/os/contract.c b/usr/src/uts/common/os/contract.c index 249066674e..909a6c2860 100644 --- a/usr/src/uts/common/os/contract.c +++ b/usr/src/uts/common/os/contract.c @@ -22,6 +22,9 @@ * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright (c) 2017 by Delphix. All rights reserved. + */ /* * Contracts @@ -891,7 +894,7 @@ contract_vnode_clear(contract_t *ct, contract_vnode_t *ctv) list_remove(&ct->ct_vnodes, ctv); result = 1; } else { - vp->v_count--; + VN_RELE_LOCKED(vp); result = 0; } mutex_exit(&vp->v_lock); -- cgit v1.2.3