"AFSAcquireFcbForLazyWrite Acquiring Fcb %08lX\n",
Fcb);
- ASSERT( NULL == pFcb->Specific.File.LazyWriterThread);
-
- pFcb->Specific.File.LazyWriterThread = PsGetCurrentThread();
-
AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAcquireFcbForLazyWrite Attempt to acquire Fcb lock %08lX SHARED %08lX\n",
IoSetTopLevelIrp( NULL);
- ASSERT( PsGetCurrentThread() == pFcb->Specific.File.LazyWriterThread);
-
- pFcb->Specific.File.LazyWriterThread = NULL;
-
-
AFSReleaseResource( &pFcb->NPFcb->PagingResource);
AFSReleaseResource( &pFcb->NPFcb->Resource);
BOOLEAN bExtendingWrite = FALSE;
BOOLEAN bCompleteIrp = TRUE;
BOOLEAN bLockOK;
- BOOLEAN bMapped = TRUE;
HANDLE hCallingUser = OnBehalfOf;
ULONG ulExtensionLength = 0;
BOOLEAN bRetry = FALSE;
*/
//
- // If they are not mapped and we are the Lazy Writer then just
- // say "not now"
- //
- if (!bMapped && pFcb->Specific.File.LazyWriterThread == PsGetCurrentThread())
- {
-
- AFSDbgLogMsg( AFS_SUBSYSTEM_IO_PROCESSING,
- AFS_TRACE_LEVEL_VERBOSE,
- "AFSCommonWrite (%08lX) Failing lazy writer for unmapped request\n",
- Irp);
-
- try_return ( ntStatus = STATUS_FILE_LOCK_CONFLICT);
- }
-
- //
// Take locks
//
// - if Paging then we need to nothing (the precalls will