From: Ralph Boehme <slow@xxxxxxxxx> commit ca4b2c4607433033e9c4f4659f809af4261d8992 upstream. Avoid extra roundtrip Cc: stable@xxxxxxxxxxxxxxx Acked-by: Paulo Alcantara (Red Hat) <pc@xxxxxxxxxxxxx> Signed-off-by: Ralph Boehme <slow@xxxxxxxxx> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/smb/client/smb2inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/fs/smb/client/smb2inode.c +++ b/fs/smb/client/smb2inode.c @@ -943,7 +943,8 @@ int smb2_query_path_info(const unsigned if (rc || !data->reparse_point) goto out; - cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA; + if (!tcon->posix_extensions) + cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA; /* * Skip SMB2_OP_GET_REPARSE if symlink already parsed in create * response. Patches currently in stable-queue which might be from slow@xxxxxxxxx are queue-6.6/fs-smb-client-avoid-querying-smb2_op_query_wsl_ea-for-smb3-posix.patch queue-6.6/fs-smb-client-implement-new-smb3-posix-type.patch queue-6.6/smb3.1.1-fix-posix-mounts-to-older-servers.patch queue-6.6/fs-smb-client-cifs_prime_dcache-for-smb3-posix-reparse-points.patch