LARGE_INTEGER liAlignedOffset;
ULONG ulAlignedLength = 0;
LARGE_INTEGER liTimeOut;
+ ULONGLONG ullProcessId = (ULONGLONG)PsGetCurrentProcessId();
//
// Check our extents, then fire off a request if we need to.
{
//
- // If this isn't the same process which caused the failure then try to request them again
+ // If this isn't the same process which caused the failure
+ // then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId)
{
ntStatus = pNPFcb->Specific.File.ExtentsRequestStatus;
// If this isn't the same process which caused the failure then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId)
{
ntStatus = pNPFcb->Specific.File.ExtentsRequestStatus;
{
//
- // If this isn't the same process which caused the failure then try to request them again
+ // If this isn't the same process which caused the failure
+ // then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId)
{
AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
LARGE_INTEGER liAlignedOffset;
ULONG ulAlignedLength = 0;
BOOLEAN bRegionMapped = FALSE;
+ ULONGLONG ullProcessId = (ULONGLONG)PsGetCurrentProcessId();
__Enter
{
// If this isn't the same process which caused the failure then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId)
{
try_return( ntStatus = pNPFcb->Specific.File.ExtentsRequestStatus);
}
{
NTSTATUS ntStatus = STATUS_SUCCESS;
LARGE_INTEGER liTimeOut;
+ ULONGLONG ullProcessId = (ULONGLONG)PsGetCurrentProcessId();
__Enter
{
// If this isn't the same process which caused the failure then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId)
{
try_return( ntStatus = Fcb->NPFcb->Specific.File.ExtentsRequestStatus);
}
{
//
- // If this isn't the same process which caused the failure then try to request them again
+ // If this isn't the same process which caused the failure
+ // and this isn't the System process, then try to request them again
//
- if( Fcb->Specific.File.ExtentRequestProcessId == (ULONGLONG)PsGetCurrentProcessId())
+ if( Fcb->Specific.File.ExtentRequestProcessId == ullProcessId ||
+ ullProcessId == 0x4)
{
try_return( ntStatus = Fcb->NPFcb->Specific.File.ExtentsRequestStatus);
}