[NTOSKRNL] Properly implement lazy writer activity watching.
authorPierre Schweitzer <pierre@reactos.org>
Wed, 7 Feb 2018 17:56:13 +0000 (18:56 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 7 Feb 2018 20:37:17 +0000 (21:37 +0100)
commitf4e67aa837c5c8190fe1d502a2ef277921e2e710
tree8a5db73292f3277d2aa5630ab9a3de968df4e6cc
parent7e550edb2638b7f59785659559d4431c85d3ceda
[NTOSKRNL] Properly implement lazy writer activity watching.
We get rid of the old iLazyWriterNotify event in favor of work items
that contain an event that lazy writer will set once its done.
To implement this, we rely on the newly introduced CcPostTickWorkQueue work queue
that will contain work items that are to be queued once lazy writer is done.

Move the CcWaitForCurrentLazyWriterActivity() implementation to the
lazy writer file, and reimplemented it using the new support mechanisms
ntoskrnl/cc/cacheman.c
ntoskrnl/cc/copy.c
ntoskrnl/cc/lazywrite.c
ntoskrnl/include/internal/cc.h