]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jan 2019 20:52:06 +0000 (14:52 -0600)
commit9214c0e67f2a21ba3f08629ebcdba58fe9047d09
tree50e009bad1b6d8cce27aa1ee1fc8088a67951be1
parentf46021b373eb07010e2640fd1599be3b8346e575
CIFS: Fix mounts if the client is low on credits

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>
fs/cifs/smb2inode.c