Message ID | 20220310113709.739102-1-wanjiabing@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-cifs-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8DF4C433EF for <linux-cifs@archiver.kernel.org>; Thu, 10 Mar 2022 11:37:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234109AbiCJLid (ORCPT <rfc822;linux-cifs@archiver.kernel.org>); Thu, 10 Mar 2022 06:38:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiCJLic (ORCPT <rfc822;linux-cifs@vger.kernel.org>); Thu, 10 Mar 2022 06:38:32 -0500 Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-eopbgr1300131.outbound.protection.outlook.com [40.107.130.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11813BDE; Thu, 10 Mar 2022 03:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZRI1TbuQosoq2FOAoTL+z8d4lwY7dzgp1gzBEFfT1whXekvWBQjvUZYXZr54SGCYmQ9r/AucJPUDPsmXJC0oX05FJhl65TyRADBGa9DLir2rOSyM4Q7qQIWJkDjMBThRjS9VY9VKissGoPqrzgnHUanOGIBVwfccUOWZ5ktb2ct8Xblg1VtrnDbWcH7PXhrqnu5HGwaObdrczuFvjlHV06SnYjCiZJ5GIU5RV7CWsTG3TnrDyawbqAPme1INmttE0Pk8W+NWde/gPzi/qwkWeQJB/w2EsVXbjPk+qmzz3l1lnmVTlXXxQc64X5BbJ/AESshaziwSYOi9ELk/NIs6HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CYAfweHNl6JrvFPxuQwsHcuM8x70VDmWIoLRySNKoXQ=; b=Gqf5JxKLGUmiizy0CBRrqfsGedJSRrZLvFySgU6XAYiBnynwbDa8YLfCUpfpfI5Ru+DPFNyy/0L1pPDLU69kVJlNszOktUVfd91wVJ57WA3RY73eDdjrh+P2Has4RY6IN8U/3FasZnvwPRdVor9cT8A18HTvVaVC4l7DW9QiyHCs/K3ufFVWk1jYe6jQUYSkC4o63swCCS86iIDTbhp7kqOA8B9jHdQUF1y+drrlWiQ3pDQC1X7gqU62gULA2UzR2Zhc/mJ7xLRw3G0NjfsLRe70+emvzg7ZVhlI2m/z5dA6NcoX8Vidhi+W8OphLH5NM++OWVCpdGs3c7P31RuHxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYAfweHNl6JrvFPxuQwsHcuM8x70VDmWIoLRySNKoXQ=; b=TWurFkb7ibGpj2SzfRfMYvSO43vk6owATa338r+YYbd6jAr8b7EsaT1eiFUcWBoBhDKa0HHCzQejVbXLM3ueZDhPYGO6uizy4QuaR32OVpiYkDBcsNhHcHi4X4b3eQ3bvFgiPDGcLhFS7sn0h58lY4LWn6g+D4KxolxiiCOB4aU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) by HK2PR06MB3537.apcprd06.prod.outlook.com (2603:1096:202:36::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.17; Thu, 10 Mar 2022 11:37:28 +0000 Received: from SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::9d3f:ff3b:1948:d732]) by SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::9d3f:ff3b:1948:d732%4]) with mapi id 15.20.5061.022; Thu, 10 Mar 2022 11:37:28 +0000 From: Wan Jiabing <wanjiabing@vivo.com> To: Steve French <sfrench@samba.org>, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Cc: kael_w@qq.com, Wan Jiabing <wanjiabing@vivo.com> Subject: [PATCH] cifs: add a break after finding a new iface Date: Thu, 10 Mar 2022 19:37:09 +0800 Message-Id: <20220310113709.739102-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.35.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2PR06CA0006.apcprd06.prod.outlook.com (2603:1096:202:2e::18) To SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5fbcea4c-1a98-4eae-b391-08da028a5aac X-MS-TrafficTypeDiagnostic: HK2PR06MB3537:EE_ X-Microsoft-Antispam-PRVS: <HK2PR06MB3537C2557A86F5C35EC38E6EAB0B9@HK2PR06MB3537.apcprd06.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M+WX6PaqXCKzdtQdG2ABBDnqT2mPI3zaTVzQcSLgnbqaaRk5UvNa33hkPe1HJCC8/XjGk/1J6VtDOhBrSsLoMgPH/z0jke8gUT8fGEUS8Yn1ZUSsv2DvZcCyxwacapsouD9E22q6qsUjIFLzVpokQJMycP5TiiAK7hncQy/XJy5soxU63gHR3MtKFOT8SvyZizMu9N6ZSpkEKS1GOQof+0E1Up3/M4Mdk9SgLerHxZGMkYQ2VTcbj2BNh4/TDF8Q7dKllcheeK2n6J6Drd8mL10dPfl2g2o0ob/ttCNFOVV7zAGd2B9n4+ILM5Gx45RyKXaIJI4nFcUW8REQysFfDv0WazBhVhq+t/NCUwkBduAku31Dj2wMfV7vljnyiMP5WW6IkAhMlh8YQ/SRKG518RzNY1xoOZ4jjVJUmQfWW6QPknmZLQGCVhrFbZJ/jeiOcbUXOaVpo6CCoeFfLUpKf0xQG8vmdq0p/ol+zBSRKsARR1YYSzMuFr/C1PF9mtPS9zisQwka3Oy2/Jua/3Lymakrt/lgvNFbC0clqPeTsdKuzR3vfSg2KrkHWNwg5xKv5o+dLcpwy1r49TYqR9EIjYp1YvB9cMOM2uD34c0crP2dupm6ltwTgg1sFUzlSE94nqi2JvT11beQYqmqfpY/f+vICboyOa0WWZwuCp9iLHNq/JgXwkZyiw3VqchR/ZlcAEComLD5Z9CUz4+YLsTs/A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3367.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(66946007)(66476007)(66556008)(8676002)(4326008)(38100700002)(6506007)(38350700002)(316002)(107886003)(2906002)(508600001)(2616005)(1076003)(6512007)(6666004)(6486002)(186003)(83380400001)(52116002)(36756003)(86362001)(4744005)(26005)(5660300002)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1HyHGtmowqsAuMKXoA4zjPi0v95l0hKKySv8QEKedf0tZO01zwzsVW1UR1LdUOqJxXVT60WGYsYnmT2TFWbIg95ASggOiHrzUy1l3vxCGEugUXj5P/8R3cKS+gxgiDSB1wcBIIQz/YW3sRKa6OUr209V+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4H8O8QdORlBuHOD4zR4ydUhaxJe8YO2AAFUqhk8inNQ12fMvOJhtNjOg8ruOWD+hGDbdVZovijuTxBofGFxgxp1XjoEc5oE9J2xRkD305LB/5cLCnQD0MSGLRYhgSMUkKhmqEt3cy5J04VPWVAjhdjnqcRsM+yAogp92a9FNsVjSaheGKzQ/2v7sLmbgBAuK7CaN5v/Z0WzawPwYNQxXtoSip7uNa6kQmjtqm694P/YLgPEpCoTmx1wj96aVH6a6TsVIFQrx991RnrESMAuo0XPYA2Sm3Y4ifgQUI88N3+4CJt21UHEWKGeG7oIikCL5YXpoWVXlp3bays5PAQ91255R/bFJazkQUxa3hEeM8q8O+hAK7SYQfFwTksyJNV1DldsPnfEgsV6UEQNynURM2HhemHrnfGzTzct7ts= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5fbcea4c-1a98-4eae-b391-08da028a5aac X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3367.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 11:37:27.8387 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kfDL1Z0d56X/SSfeL3M/VYG3WAiB/BXElCDUpTH09LtR9TCW+RwOwrTPNwoXxBrni8v565aba9xw+jA6Jggrcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB3537 Precedence: bulk List-ID: <linux-cifs.vger.kernel.org> X-Mailing-List: linux-cifs@vger.kernel.org |
Series |
cifs: add a break after finding a new iface
|
expand
|
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index fef087129c21..7802525a52ec 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -253,6 +253,7 @@ cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) continue; } kref_get(&iface->refcount); + break; } if (!iface) {
There should be a break after finding a new iface, otherwise the iface would always be the head of the list after iterating. Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> --- fs/cifs/sess.c | 1 + 1 file changed, 1 insertion(+)