Fix spurious -EFAULT when setting I/O scheduler
[zfs.git] / module / zfs / vdev_file.c
index f31389a..bbc85e7 100644 (file)
@@ -130,7 +130,6 @@ vdev_file_close(vdev_t *vd)
                (void) VOP_PUTPAGE(vf->vf_vnode, 0, 0, B_INVAL, kcred, NULL);
                (void) VOP_CLOSE(vf->vf_vnode, spa_mode(vd->vdev_spa), 1, 0,
                    kcred, NULL);
-               VN_RELE(vf->vf_vnode);
        }
 
        vd->vdev_delayed_close = B_FALSE;