summaryrefslogtreecommitdiffstats
path: root/fs/mpage.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2021-02-02 22:34:32 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-10 09:29:18 +0100
commit2502610927ee51c11f3208c7a11a5661a7c78fa3 (patch)
tree5737917141ee1eb20606aeadcea89d36c66372ac /fs/mpage.c
parentb793e9fca6337841ca6ede9594f5c1c7e8ec3f1d (diff)
downloadlinux-stable-2502610927ee51c11f3208c7a11a5661a7c78fa3.tar.gz
linux-stable-2502610927ee51c11f3208c7a11a5661a7c78fa3.tar.bz2
linux-stable-2502610927ee51c11f3208c7a11a5661a7c78fa3.zip
smb3: fix crediting for compounding when only one request in flight
commit 91792bb8089b63b7b780251eb83939348ac58a64 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>
Diffstat (limited to 'fs/mpage.c')
0 files changed, 0 insertions, 0 deletions