Skip to content

Commit

Permalink
IRP CLOSE should not return error
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Sep 11, 2023
1 parent 11ccdb8 commit a84ebb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/os/windows/zfs/zfs_vnops_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -6065,7 +6065,7 @@ zfs_fileobject_close(PDEVICE_OBJECT DeviceObject, PIRP Irp,
if (!vnode_isvroot(vp)) {

/* Take hold from dispatcher, try to release in recycle */
*hold_vp = NULL;
// *hold_vp = NULL;

// Release vp - vnode_recycle expects iocount==1
// we don't recycle root (unmount does) or RELE on
Expand All @@ -6076,7 +6076,7 @@ zfs_fileobject_close(PDEVICE_OBJECT DeviceObject, PIRP Irp,
// dprintf("IRP_CLOSE failed to recycle. "
// "is_empty %d\n",
// vnode_fileobject_empty(vp, 1));
VN_RELE(vp);
// VN_RELE(vp);
// }

Status = STATUS_SUCCESS;
Expand Down Expand Up @@ -6729,7 +6729,7 @@ _Function_class_(DRIVER_DISPATCH)
// we should fail this OP.
Irp->IoStatus.Information = 0;
hold_vp = NULL;
return (STATUS_INVALID_PARAMETER);
// return (STATUS_INVALID_PARAMETER);

} else {

Expand Down

0 comments on commit a84ebb5

Please sign in to comment.