diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2021-02-03 05:34:32 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-02-05 15:12:00 +0100 |
commit | 91792bb8089b63b7b780251eb83939348ac58a64 (patch) | |
tree | 158edc77d2e0efa02cff9f6631b54730200f928c /fs/statfs.c | |
parent | smb3: Fix out-of-bounds bug in SMB2_negotiate() (diff) | |
download | linux-91792bb8089b63b7b780251eb83939348ac58a64.tar.xz linux-91792bb8089b63b7b780251eb83939348ac58a64.zip |
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>
Diffstat (limited to 'fs/statfs.c')
0 files changed, 0 insertions, 0 deletions