]> www.infradead.org Git - users/dwmw2/linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Aug 2019 11:39:14 +0000 (12:39 +0100)
commitaa7ead1a7cd91f3df142f80c38dc67d2f9fec56a
treef119c3b0e78a1d65dcaab76d52b36f45933ad889
parent213bca68d77954ccdb66fcc6702c419d503e633d
cifs: do not attempt cifs operation on smb2+ rename error

commit 652727bbe1b17993636346716ae5867627793647 upstream.

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>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/cifs/inode.c