Mercurial > illumos > illumos-gate
changeset 9909:aa280f585a3e
6790232 zfs related assertion failure: vp->v_filocks == 0L, file: ../../common/fs/vnode.c, line: 2344
author | Chris Kirby <chris.kirby@sun.com> |
---|---|
date | Fri, 19 Jun 2009 08:51:49 -0600 |
parents | 4b4177fc63d9 |
children | b06e0c019bda |
files | usr/src/uts/common/fs/zfs/zfs_vnops.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/zfs_vnops.c Fri Jun 19 06:14:38 2009 -0700 +++ b/usr/src/uts/common/fs/zfs/zfs_vnops.c Fri Jun 19 08:51:49 2009 -0600 @@ -208,6 +208,12 @@ znode_t *zp = VTOZ(vp); zfsvfs_t *zfsvfs = zp->z_zfsvfs; + /* + * Clean up any locks held by this process on the vp. + */ + cleanlocks(vp, ddi_get_pid(), 0); + cleanshares(vp, ddi_get_pid()); + ZFS_ENTER(zfsvfs); ZFS_VERIFY_ZP(zp); @@ -215,12 +221,6 @@ if ((flag & (FSYNC | FDSYNC)) && (count == 1)) atomic_dec_32(&zp->z_sync_cnt); - /* - * Clean up any locks held by this process on the vp. - */ - cleanlocks(vp, ddi_get_pid(), 0); - cleanshares(vp, ddi_get_pid()); - if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && ZTOV(zp)->v_type == VREG && !(zp->z_phys->zp_flags & ZFS_AV_QUARANTINED) &&