Skip to content

Commit

Permalink
OS-4461 lxsys can bungle v_count during VOP_INACTIVE
Browse files Browse the repository at this point in the history
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
  • Loading branch information
pfmooney committed Jul 22, 2015
1 parent 26ec801 commit 571323b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/uts/common/brand/lx/sysfs/lx_syssubr.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ lxsys_freenode_static(lxsys_node_t *lnp)
if (vp->v_count != 1) {
VERIFY(vp->v_count > 0);

/* Release our hold before bailing out of lxsys_inactive */
vp->v_count--;

mutex_exit(&vp->v_lock);
mutex_exit(&lxsm->lxsysm_lock);
return (-1);
Expand Down

0 comments on commit 571323b

Please sign in to comment.