From patchwork Mon Jul 6 18:16:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Alcantara X-Patchwork-Id: 11646417 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF7001398 for ; Mon, 6 Jul 2020 18:16:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0A13206E9 for ; Mon, 6 Jul 2020 18:16:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cjr.nz header.i=@cjr.nz header.b="ArxOe51v" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729657AbgGFSQd (ORCPT ); Mon, 6 Jul 2020 14:16:33 -0400 Received: from mx.cjr.nz ([51.158.111.142]:20616 "EHLO mx.cjr.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729647AbgGFSQd (ORCPT ); Mon, 6 Jul 2020 14:16:33 -0400 Received: from authenticated-user (mx.cjr.nz [51.158.111.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pc) by mx.cjr.nz (Postfix) with ESMTPSA id 0CD167FD17; Mon, 6 Jul 2020 18:16:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1594059391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UkV7uofn6W3hAbnqxtSu0N6d34wrEhxJWG1g0/rEvS4=; b=ArxOe51vp2pWq08lD04LNp5LcP0Isc0JwiyheKisMPR5O6zSwibhmQ50nrJnBYA2pe7XIA AKm5AllrVxBJT5wSdsIcic/VGSe+WAIv1eFlFdNf5oT95bj3jpnBHLGucxr/uO1zxlPitD jDTT5n+vv3Nq8oUa9w9dnywuvN8lA1w4Q4iCpzDLzUsSeSKxSjBYlB10nIh1n+CzngqQkJ js7fKqz76tRRxMU/md+IbluhH8Omux6IPXrFMgbLaBENDK6ZXAjy1Diw00Ce8lfffs+BJe XykIQ1KN9DbIlpIDjBQyecZzWS1pQD+zp96CXGZ1yMQF/MW7ZzgB52qXzwl7PQ== From: Paulo Alcantara To: linux-cifs@vger.kernel.org, smfrench@gmail.com Cc: Paulo Alcantara Subject: [PATCH v2 0/7] DFS fixes Date: Mon, 6 Jul 2020 15:16:02 -0300 Message-Id: <20200706181609.19480-1-pc@cjr.nz> MIME-Version: 1.0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Hi Steve, Follow some fixes, cleanups and documentation for DFS. All DFS failover tests passed with this series in our local buildbot. v1 -> v2: * fix bad rebase that removed usage of "share_len" in scnprintf() (Metze) Paulo Alcantara (6): cifs: reduce number of referral requests in DFS link lookups cifs: rename reconn_inval_dfs_target() cifs: handle empty list of targets in cifs_reconnect() cifs: handle RESP_GET_DFS_REFERRAL.PathConsumed in reconnect cifs: only update prefix path of DFS links in cifs_tree_connect() cifs: document and cleanup dfs mount Stefan Metzmacher (1): cifs: merge __{cifs,smb2}_reconnect[_tcon]() into cifs_tree_connect() fs/cifs/cifsproto.h | 6 +- fs/cifs/cifssmb.c | 112 +--------- fs/cifs/connect.c | 504 ++++++++++++++++++++++++++------------------ fs/cifs/dfs_cache.c | 136 +++++++++--- fs/cifs/dfs_cache.h | 7 +- fs/cifs/misc.c | 7 +- fs/cifs/smb2pdu.c | 113 +--------- 7 files changed, 428 insertions(+), 457 deletions(-)