CcPinRead and MPW

Hi All,

I have a problem where most of the cached writes are sent to me twice: once by cache manager and another time by modified page writer.

I am writing a DFS, where on the client I want to keep the write buffers cached until I receive a confirmation from the server that data was committed to the disk. I use the pinning interface to lock the buffer in memory - this way if necessary I can mark the buffer dirty again later on.

Everything works fine, except when I PIN the buffer processing the lazy writer request, I receive a duplicate write request later by MPW. The net result is the performance sucks. Any ideas or/and suggestions will be greatly appreciated.

Thanks in advance,

Ilya.