Skip to content

Commit

Permalink
fastio-write() should not hold locks
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Sep 21, 2023
1 parent 4e1e284 commit 5c4290b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions module/os/windows/zfs/zfs_vnops_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -7530,15 +7530,9 @@ fastio_write(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset,
BOOLEAN ret;

// treelock
if (!ExAcquireResourceExclusiveLite(vp->FileHeader.Resource, Wait)) {
return (FALSE);
}

ret = FsRtlCopyWrite(FileObject, FileOffset, Length,
Wait, LockKey, Buffer, IoStatus, DeviceObject);

ExReleaseResourceLite(vp->FileHeader.Resource);

return (ret);
}

Expand Down

0 comments on commit 5c4290b

Please sign in to comment.