smb3: fix crediting for compounding when only one request in flight
commit 91792bb8 upstream. 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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
b793e9fc
Please register or sign in to comment