[NTOSKRNL] Rewrite BCB handling to be more robust
authorPierre Schweitzer <pierre@reactos.org>
Thu, 11 Oct 2018 21:15:01 +0000 (23:15 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 11 Oct 2018 21:15:01 +0000 (23:15 +0200)
commitcf8ba3bd9cb74870c64deb29ea44ac12245a4e92
tree3b8a0c9b8c4d7baa13127618b63ed554a56fb32b
parent8f4d8cb616ddb90142f8a2982beb23b0b27b38af
[NTOSKRNL] Rewrite BCB handling to be more robust

We now handle race conditions when creating BCB to avoid
having duplicated BCB per shared maps.
Also, we already specify whether the memory will be pinned
when creating the BCB, to avoid potential duplications or
BCB misuse.
ntoskrnl/cc/pin.c