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/fs/tmpfs/tmp_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/src/uts/common/fs/tmpfs/tmp_vnops.c') diff --git a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c index a8eadfa6db..a09f206d88 100644 --- a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c +++ b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c @@ -28,6 +28,7 @@ * Copyright (c) 2015, Joyent, Inc. All rights reserved. * Copyright 2015 Nexenta Systems, Inc. All rights reserved. * Copyright 2016 RackTop Systems. + * Copyright (c) 2017 by Delphix. All rights reserved. */ #include @@ -1676,7 +1677,7 @@ top: * there's little to do -- just drop our hold. */ if (vp->v_count > 1 || tp->tn_nlink != 0) { - vp->v_count--; + VN_RELE_LOCKED(vp); mutex_exit(&vp->v_lock); mutex_exit(&tp->tn_tlock); rw_exit(&tp->tn_rwlock); -- cgit v1.2.3