Windows: Race between NonCached and Cached Writes
[openafs.git] / src / WINNT / afsrdr / kernel / lib / AFSWrite.cpp
index e7e3ed9..dbe4f75 100644 (file)
@@ -516,7 +516,7 @@ AFSCommonWrite( IN PDEVICE_OBJECT DeviceObject,
                                     (liStartingByte.LowPart == FILE_WRITE_TO_END_OF_FILE &&
                                       liStartingByte.HighPart == -1)) ;
 
-                if( bExtendingWrite)
+                if( bExtendingWrite || bNonCachedIo)
                 {
                     //
                     // Check for lock inversion