]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: do not attempt cifs operation on smb2+ rename error
authorFrank Sorenson <sorenson@redhat.com>
Tue, 16 Apr 2019 13:37:27 +0000 (08:37 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Apr 2019 17:33:59 +0000 (12:33 -0500)
commit9598808b479983e6341b971db9a4cace302733c9
treed0c67021774a1e2c34feed31ff224e259ee9a5ca
parent5c8b86039b3f3caf70b605c65336b9bb21835c27
cifs: do not attempt cifs operation on smb2+ rename error

A path-based rename returning EBUSY will incorrectly try opening
the file with a cifs (NT Create AndX) operation on an smb2+ mount,
which causes the server to force a session close.

If the mount is smb2+, skip the fallback.

Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/inode.c