]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: fix crediting for compounding when only one request in flight
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 3 Feb 2021 04:34:32 +0000 (22:34 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 5 Feb 2021 14:12:00 +0000 (08:12 -0600)
commit7be9fecc467dd957425528ac66f1ba4df3f2cdf2
tree158edc77d2e0efa02cff9f6631b54730200f928c
parent91c0c99d5b7575a944eca85b4e9184d4381f977b
smb3: fix crediting for compounding when only one request in flight

Currently we try to guess if a compound request is going to
succeed waiting for credits or not based on the number of
requests in flight. This approach doesn't work correctly
all the time because there may be only one request in
flight which is going to bring multiple credits satisfying
the compound request.

Change the behavior to fail a request only if there are no requests
in flight at all and proceed waiting for credits otherwise.

Cc: <stable@vger.kernel.org> # 5.1+
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Tom Talpey <tom@talpey.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c