Skip to content

Commit ca4b2c4

Browse files
slowfranklinSteve French
authored andcommitted
fs/smb/client: avoid querying SMB2_OP_QUERY_WSL_EA for SMB3 POSIX
Avoid extra roundtrip Cc: stable@vger.kernel.org Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Ralph Boehme <slow@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 40384c8 commit ca4b2c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/smb/client/smb2inode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,8 @@ int smb2_query_path_info(const unsigned int xid,
943943
if (rc || !data->reparse_point)
944944
goto out;
945945

946-
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
946+
if (!tcon->posix_extensions)
947+
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
947948
/*
948949
* Skip SMB2_OP_GET_REPARSE if symlink already parsed in create
949950
* response.

0 commit comments

Comments
 (0)