MrxSmb/Lazy writer problem: IO_LOST_DELAYED_WRITE / STATUS_CONNECTION_DISCONNECTED

Hello everybody,

first of all I’m not sure if this is the right newsgroup for my issue,
as although this is surely a kernel/file system related problem, it’s
not a problem in some driver written by me but arises from the daily use
of my Windows system.

Problem summary: Let there be some processes running having open files
on a SMB/CIFS network share. After going to S3 mode (Suspend-to-ram) and
wakeup again, the MrxSmb driver notifies me that delayed writing has
failed (event 0x50, error code 0x80040032: IO_LOST_DELAYED_WRITE),
describing the reason with the error code 0xC000020C
(STATUS_CONNECTION_DISCONNECTED).

Problem analysis (as far as I can say, but I’m not sure): During S3 the
network connections are lost (of course). However, before the system is
suspended the cache manager’s lazy writer has not flushed its data.
After wakeup it tries to do so and fails because the network connection
is gone.

My question: Is it possible

  1. either to force the cache manager to flush its dirty pages before the
    system is suspended, or
  2. disable lazy I/O for network connections?

I think it’s a client problem. I don’t think it’s a problem that can be
solved on the server side, but I don’t know for sure, and I’ll be
grateful for any suggestions you might have.

Regards,
Christoph Schulz