Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2974639iog; Mon, 20 Jun 2022 08:34:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2akrE7L7UuZ7i+anBV+07z8kbW9wQgSvEVQ1erpg6EUPPBk+cX3byK+MtJkz1N0NuocAi X-Received: by 2002:a05:6402:e0c:b0:435:25cd:6088 with SMTP id h12-20020a0564020e0c00b0043525cd6088mr30915946edh.60.1655739281812; Mon, 20 Jun 2022 08:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655739281; cv=none; d=google.com; s=arc-20160816; b=aeaZ28ywGgGrFBpFDaeKtqFgNa6CGsMHkSYEFZMJsFjHDdBPHZw+InZIo20Q1T5NTg YXaN1KNhbnARcbBYeztuKd1bqI8dLsz2bHWAZeEvqGGrtZJLHeeTNaFHshNXLwcYGZ/n S0MR5SF7pX3cqK0A+/KM2ktVW0WvPBAkkAA5yuOCNJ7blfcEwz3i/QvDj6PGOOCQaVZj JGi4ESyZy0EWFdXPG4E/0Cg5E7YEz4MwNYAJkxWRCDpaN0f8NyL+2XH9OcfQ+5Ek0pTk WzAtZaT1YaERZ8fYVEny4bA+mU8+4L6cieXG21vSLdzuysnMVj+ps0WPIzMJDP+1DVb+ UDuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AAh9dzPILMHQWI8/F4SQx4JCHCxKzo11Zr+T4oaJSao=; b=ACfDrphogIQ02fI1XzNkYpTJhO/tXXwYgukouDB7UdS9rDO6J6MtxJ5+/yUI+pApdH kNkHA1dGcqSPcxFDcV4hF7JfMkBax82mow2EHYuTIBNcsSffPMSHhJ9hcQJDiMf0OwPK RajXzAY5nJuYVwkYjcI9vULPx82XWk9GV2J1tOmlPsbeIPFSvOMGv1JXCfE6tfHP6Htp 2aleehR4X3pHPxF8gttE3v6ueeM4Ag3NBPihTai1nE9DYTmPKniBud17C4wHDDUK34Bb BUoLKaZOHLyuRBP92cpCxuDbPayDkjSmM4kBOtMuCNSOAjx2ujYZXCit9mipB5vVYHdD y/yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PR5qTNGR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a05640212cd00b00435721311dasi6828914edx.537.2022.06.20.08.34.15; Mon, 20 Jun 2022 08:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PR5qTNGR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244000AbiFTP0F (ORCPT + 99 others); Mon, 20 Jun 2022 11:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244639AbiFTPZ0 (ORCPT ); Mon, 20 Jun 2022 11:25:26 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F992E48 for ; Mon, 20 Jun 2022 08:24:43 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id g15so8018180qke.4 for ; Mon, 20 Jun 2022 08:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AAh9dzPILMHQWI8/F4SQx4JCHCxKzo11Zr+T4oaJSao=; b=PR5qTNGRhwRdExCn+/SVMM61J5hWqY06ps1bkPBZUgx6QpG2HeXODeLNM8rdwMsBrc RyNZA/uo26CbFEOC3RHKltlJ/pPenUJ4+kxu+7eiJO2xi7eSx5ta4EaB5iMuiZj8/qXF XB7MwnygUXwOwS65oTFwlFTTgkLP6zs8cW5EX6RaHgHSTZ45xnMIwuweFuAxKt+ktWiF zmhpjjVlDr6NB7iPC2rTZtZf0vCXUpj0/bqAZU0Ma+fz/b3Rpwck3NZ9pfJuft5TddZ+ nisXN7VsJdj85dKFtRkX6iT4+54ZpxFGZ8y5XwyymTrKUsa4EW0tpnhxeF8WbfSzREjZ Zn+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AAh9dzPILMHQWI8/F4SQx4JCHCxKzo11Zr+T4oaJSao=; b=FMLulj0YW9t3gfe2o3ZP96alhcDk8yaG+BqJ+wu/wT1CrRsSG6bJOCMylx51RHrcS6 0c1pYgrw0flLjV2eotFCHJZYpnSIeL8LxbpdC+O0jka6z5GnlzdRs1UFBuh2cskMnc7l KxJ/WHiGZLWdRCUHX4c2aQ+g5eug+OYaGDQK9is9a0DvN+xTILahaCZJchwu5w6fhrpj /HpVVS1oeo6gxDQujoArwBzvuA0JrerBT/jO+kulrBy/xUzG2VEYiMC/klZj/Urko79O plu26c9HQjhqEdt0MpX8j4iP2WmlHBZMbP7sZUeZF5DFbH9NKo/GJsqIsizPwlmjfV3e QlOw== X-Gm-Message-State: AJIora8jc1OoOJUgepQx5rrKw59udFtgnrfVdjsUlg2lRKMXDdR6AHZm G8RoKuRiWXCylNEPM4usJ4oyyWJuaI14cA== X-Received: by 2002:a05:620a:2681:b0:67e:933e:54b6 with SMTP id c1-20020a05620a268100b0067e933e54b6mr16710169qkp.428.1655738682745; Mon, 20 Jun 2022 08:24:42 -0700 (PDT) Received: from kolga-mac-1.attlocal.net ([2600:1700:6a10:2e90:48cb:6eb8:1da1:a5c0]) by smtp.gmail.com with ESMTPSA id g10-20020a05620a40ca00b006a791a42693sm12517862qko.133.2022.06.20.08.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 08:24:42 -0700 (PDT) From: Olga Kornievskaia To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH v1 10/12] SUNRPC export xprt_iter_rewind function Date: Mon, 20 Jun 2022 11:24:05 -0400 Message-Id: <20220620152407.63127-11-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220620152407.63127-1-olga.kornievskaia@gmail.com> References: <20220620152407.63127-1-olga.kornievskaia@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Olga Kornievskaia Make xprt_iter_rewind callable outside of xprtmultipath.c Signed-off-by: Olga Kornievskaia --- include/linux/sunrpc/xprtmultipath.h | 2 ++ net/sunrpc/xprtmultipath.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/sunrpc/xprtmultipath.h b/include/linux/sunrpc/xprtmultipath.h index 9fff0768d942..c0514c684b2c 100644 --- a/include/linux/sunrpc/xprtmultipath.h +++ b/include/linux/sunrpc/xprtmultipath.h @@ -68,6 +68,8 @@ extern void xprt_iter_init_listoffline(struct rpc_xprt_iter *xpi, extern void xprt_iter_destroy(struct rpc_xprt_iter *xpi); +extern void xprt_iter_rewind(struct rpc_xprt_iter *xpi); + extern struct rpc_xprt_switch *xprt_iter_xchg_switch( struct rpc_xprt_iter *xpi, struct rpc_xprt_switch *newswitch); diff --git a/net/sunrpc/xprtmultipath.c b/net/sunrpc/xprtmultipath.c index 41ec46e5f1a3..154bb6cf27ad 100644 --- a/net/sunrpc/xprtmultipath.c +++ b/net/sunrpc/xprtmultipath.c @@ -479,7 +479,6 @@ struct rpc_xprt *xprt_iter_next_entry_offline(struct rpc_xprt_iter *xpi) * Resets xpi to ensure that it points to the first entry in the list * of transports. */ -static void xprt_iter_rewind(struct rpc_xprt_iter *xpi) { rcu_read_lock(); -- 2.27.0