[NTOKSNRL] Always flush dirty VACB.
authorPierre Schweitzer <pierre@reactos.org>
Mon, 30 Apr 2018 20:19:17 +0000 (22:19 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 30 Apr 2018 20:24:30 +0000 (22:24 +0200)
commit54c049bd6ef0a906aff0f434f724765f009485d8
tree0e2c981a5984a3aa218c27b97564526ec1c4a511
parent7673837a8577fb7aee4ad9219908eca4d8e5eef2
[NTOKSNRL] Always flush dirty VACB.

Recent changes seem to show that it's not
required to be exclusive on VACB to be able
to flush it.

This commit goes with f2c44aa and fixes the
last issues going with copying huge files.
There are no longer BSODs (be it in Mm or Cc).
I could, with 750MB RAM extract a 2GB file from
a 53MB archive and copy a 2,5GB file from a VBox
share to the disk. Note that writes are often
deferred, so if copy works, it's not that fast for now.

Note that it also brings some beloved behavior from
Windows: copy times are totally unreliable now when
writes are deferred. Little remaining times when
actively copying, high remaining times when deferred
writes in action. And goes between both... Sorry! ;-)

https://xkcd.com/612/

CORE-9696
CORE-11175
ntoskrnl/cc/view.c