cifs: add a warning when the in-flight count goes negative 5.15-backport-6-15-23
authorSteve French <stfrench@microsoft.com>
Fri, 16 Jun 2023 01:31:23 +0000 (20:31 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 16 Jun 2023 01:39:00 +0000 (20:39 -0500)
commite21b491a86067d5b472194cb3ec4f43e274cc81f
tree665860677b2b92883b9f0494e38671a5df5d406a
parentc7a501366b9c956c3de46040b8b177b4ab47f467
cifs: add a warning when the in-flight count goes negative

We've seen the in-flight count go into negative with some
internal stress testing in Microsoft.

Adding a WARN when this happens, in hope of understanding
why this happens when it happens.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c