]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
CIFS: Fix mounts if the client is low on credits
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 16 Jan 2019 19:48:42 +0000 (11:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:29:08 +0000 (10:29 +0100)
commit75d2ac0c0432e93362ab7fb7b250068ef772fba0
treebf8b7ec2fa688bdf5e126bfdd48c583b8167a5c4
parent8beb5d8df1481932d35450ca7a328a240916f419
CIFS: Fix mounts if the client is low on credits

[ Upstream commit 6a9cbdd1ceca1dc2359ddf082efe61b97c3e752b ]

If the server doesn't grant us at least 3 credits during the mount
we won't be able to complete it because query path info operation
requires 3 credits. Use the cached file handle if possible to allow
the mount to succeed.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2inode.c