diff options
author | Sebastien Roy <seb@delphix.com> | 2017-04-27 22:46:23 -0700 |
---|---|---|
committer | Prakash Surya <prakash.surya@delphix.com> | 2017-05-16 02:07:25 -0700 |
commit | ade42b557a6e29c3d17a61b1535d99af10e379be (patch) | |
tree | d78d4019b4d8ff987fb90f8c24ad8e135624b6ea /usr/src/uts/common/sys/fs/sdev_impl.h | |
parent | fe4627ef755b7c263f91a0e6f07cdca5d7083501 (diff) | |
download | illumos-joyent-ade42b557a6e29c3d17a61b1535d99af10e379be.tar.gz |
8064 need a static DTrace probe in VN_HOLD
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Prashanth Sreenivasa <pks@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/fs/sdev_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/fs/sdev_impl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/fs/sdev_impl.h b/usr/src/uts/common/sys/fs/sdev_impl.h index 1223c91862..9f9ce5c8c1 100644 --- a/usr/src/uts/common/sys/fs/sdev_impl.h +++ b/usr/src/uts/common/sys/fs/sdev_impl.h @@ -21,7 +21,7 @@ /* * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2015, 2016 Joyent, Inc. All rights reserved. - * Copyright (c) 2014 by Delphix. All rights reserved. + * Copyright (c) 2014, 2017 by Delphix. All rights reserved. */ #ifndef _SYS_SDEV_IMPL_H @@ -239,9 +239,10 @@ typedef enum { #define SDEV_HOLD(dv) VN_HOLD(SDEVTOV(dv)) #define SDEV_RELE(dv) VN_RELE(SDEVTOV(dv)) #define SDEV_SIMPLE_RELE(dv) { \ - mutex_enter(&SDEVTOV(dv)->v_lock); \ - SDEVTOV(dv)->v_count--; \ - mutex_exit(&SDEVTOV(dv)->v_lock); \ + struct vnode *vp = SDEVTOV(dv); \ + mutex_enter(&vp->v_lock); \ + VN_RELE_LOCKED(vp); \ + mutex_exit(&vp->v_lock); \ } #define SDEV_ACL_FLAVOR(vp) (VFSTOSDEVFS(vp->v_vfsp)->sdev_acl_flavor) |