Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions drivers/filesystems/udfs/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ UDFCommonRead(
NonCachedIo = TRUE;
}

// If this is async paging io then check if we are being called by the mapped page writer.
// Convert it back to synchronous if not.

if (!Wait && PagingIo) {

SetFlag(IrpContext->Flags, IRP_CONTEXT_FLAG_WAIT);
Wait = BooleanFlagOn(IrpContext->Flags, IRP_CONTEXT_FLAG_WAIT);
}

_SEH2_TRY {

// Acquire the appropriate FCB resource shared
Expand Down
2 changes: 1 addition & 1 deletion drivers/filesystems/udfs/write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ UDFCommonWrite(

if (!Wait && PagingIo) {

Wait = TRUE;
SetFlag(IrpContext->Flags, IRP_CONTEXT_FLAG_WAIT);
Wait = BooleanFlagOn(IrpContext->Flags, IRP_CONTEXT_FLAG_WAIT);
}

StartingOffset = IrpSp->Parameters.Write.ByteOffset.QuadPart;
Expand Down