]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
CIFS: Reopen file before get SMB2 MTU credits for async IO
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 25 Jan 2019 19:59:01 +0000 (11:59 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:10:01 +0000 (18:10 -0600)
commit3e9529944d4177bd3a0952f4e7fe4f76c0f9bf6f
treedb847ea4a4550c488b785175edd4f0f0c74546d5
parentf0b93cb9d10789381c2c8c3bcab2315c3dcb3311
CIFS: Reopen file before get SMB2 MTU credits for async IO

Currently we get MTU credits before we check an open file if
it needs to be reopened. Reopening the file in such conditions
leads to a possibility of being stuck waiting indefinitely
for credits in the transport layer. Fix this by reopening the
file first if needed and then getting MTU credits for async IO.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c