Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp529983pxb; Tue, 2 Feb 2021 10:55:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJznBrU+PABIp86dqCLDxNlHsuEOBEG3Xux7BSImu0XJJ80GYwCQGTGG7pa0wPPkGoI4ohCi X-Received: by 2002:a50:ee10:: with SMTP id g16mr373258eds.62.1612292128886; Tue, 02 Feb 2021 10:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612292128; cv=none; d=google.com; s=arc-20160816; b=Jg+n6rK9fNKphfiXHQtbEIQA0pe3XdnSSI51KgL+FUVN/xAz8Dm7A+LLzpiDkj64gl 5BNQwHefgmBwTr+724W7Gkt9nN92f8HpEmrDmneBCqkS/7MJRw4v5LWC7rsoVE0fApS6 Z3mUc5W2giiXcHJTFdaHwFPhCRSeO0KEd55ExMHjKN8gxep5tzQ24Nq448UJTj+xQxzI 1RA2SheqP32itxy8Y88bkVIIUaiP/74/SneTVvEbeqYVRbGoP2nqLu8JS/Zt7bbU2pck GZrDTXm6CxpHknbdsRDuyuo2Rx8YX6PtaL5i0FcsFApiSHTCixgWZEo1XHx9y2LXJVgE s8BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CQPbkej7XcLGbeGWq2tIkGYl9st7pwxv867zteDGzuA=; b=ZiTbT4m3xviM17Dc7RFPmXE2dplQ0l5AFivNp0NV0h9rn2YPBEE64gPEqFGEWGbvNE NP0ZAN+yt9DUX1qq2QR1KAv+XJ3DsizAgZkxxBQcRfiSbbSKldz87cyctwOAvUtHwNJL lCf9qVIK5KKVCP5sZBJJgMbfaL1LpNZGcqvTRwWFmwjJoxkBXeu65DW7ACWMYpTKBQzO L0ppiXzGGczU5aDSPyH90hvt9jlb6W2K//avuKv/kNQh4is4i6x/HtTr5hJbrNdONKIR +k3EnfTpvokHysz3aryxPIJknWcQHT+SB5nw1ZfwL0AW1WvDqJHsZXoM+bewxWg3+Y1J Wr/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDMXQonM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si12923668ejj.456.2021.02.02.10.55.04; Tue, 02 Feb 2021 10:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pDMXQonM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 S239108AbhBBSyL (ORCPT + 99 others); Tue, 2 Feb 2021 13:54:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239061AbhBBSxJ (ORCPT ); Tue, 2 Feb 2021 13:53:09 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FCDC06174A for ; Tue, 2 Feb 2021 10:52:28 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id w1so31557767ejf.11 for ; Tue, 02 Feb 2021 10:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CQPbkej7XcLGbeGWq2tIkGYl9st7pwxv867zteDGzuA=; b=pDMXQonMauO0+k8LnLFafpO0z59c5nepQcISMRHPmJpImktnPIyg+j7TQIh7S+zOge 48rm6XGPIFWrZt3jwzkL4TNrsALqd7NWcgXSQu7lsuv2EsecIIz8Q/FciuNvzHSI+ZvS pFAJSOT2YRIqZkaKtOzycD9w/N9onf1RTI/+pjtY1WbnOMA+dsf+QCp77+JqA+onJ7pe yfQCNomEKlhq7ta79qbcDCRXtt85somDOS4Gsz61OAt50V3NN1dR6/b3pzTYkJkMx7S1 hkaQWbB+bGpFrvqrZYrPxphzfJ+MFwAN18X4Er/JdiQ7MyTUFqFgBMGhQQ77KE3hen9K rFvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CQPbkej7XcLGbeGWq2tIkGYl9st7pwxv867zteDGzuA=; b=kNJMWUuA1QK9R+2dexOooYcZzxi5fHO/e3c7pzgeeBvtCdq6P17xgLi8YcyK6uQLAA Q5WaLZ9NhSUsgAMoSDbxOwvCQ+88StKNcOLiwWbEZYs8R5kDWuIgeEbQfcU9kyIuofmw aOqXSV+uXfufKAs6+N1IQ00k80IGCPIFM8PSecfA7r6HoKreSANhNqm00sxe0bbhAE3I YSEEbHEDB75l5MvtJFo9N4hc3e9D5RvmlFBdjG1KnxuQS0rfopPK31/u4uopkWRg2Bx8 /dlqsVHWZRXQav6k1ux3n9KtA/ftH2AUpuFXFLURYuKSJty+d7xfRSXDN7hGtyzL7pzY BfDQ== X-Gm-Message-State: AOAM53164hDP7XEQr4/9I2cbOsVFHKoyDoWSQ8YL/SBp3NkcbrOaXoWr cFhaTCSNwXBfjcLbA1ifM0gYlWUj2Gjc2pgBp+E= X-Received: by 2002:a17:906:980b:: with SMTP id lm11mr725317ejb.46.1612291947109; Tue, 02 Feb 2021 10:52:27 -0800 (PST) MIME-Version: 1.0 References: <20210202184244.288898-1-Anna.Schumaker@Netapp.com> <75F3F315-84AA-41A0-A43A-C531042A9C47@oracle.com> In-Reply-To: <75F3F315-84AA-41A0-A43A-C531042A9C47@oracle.com> From: Anna Schumaker Date: Tue, 2 Feb 2021 13:52:10 -0500 Message-ID: Subject: Re: [PATCH v2 0/5] SUNRPC: Create sysfs files for changing IP To: Chuck Lever Cc: Linux NFS Mailing List , Dan Aloni Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org You're welcome! I'll try to remember to CC him on future versions On Tue, Feb 2, 2021 at 1:51 PM Chuck Lever wrote: > > I want to ensure Dan is aware of this work. Thanks for posting, Anna! > > > On Feb 2, 2021, at 1:42 PM, schumaker.anna@gmail.com wrote: > > > > From: Anna Schumaker > > > > It's possible for an NFS server to go down but come back up with a > > different IP address. These patches provide a way for administrators to > > handle this issue by providing a new IP address for xprt sockets to > > connect to. > > > > Chuck has suggested some ideas for future work that could also use this > > interface, such as: > > - srcaddr: To move between network devices on the client > > - type: "tcp", "rdma", "local" > > - bound: 0 for autobind, or the result of the most recent rpcbind query > > - connected: either true or false > > - last: read-only timestamp of the last operation to use the transport > > - device: A symlink to the physical network device > > > > Changes in v2: > > - Put files under /sys/kernel/sunrpc/ instead of /sys/net/sunrpc/ > > - Rename file from "address" to "dstaddr" > > > > Thoughts? > > Anna > > > > > > Anna Schumaker (5): > > sunrpc: Create a sunrpc directory under /sys/kernel/ > > sunrpc: Create a net/ subdirectory in the sunrpc sysfs > > sunrpc: Create per-rpc_clnt sysfs kobjects > > sunrpc: Prepare xs_connect() for taking NULL tasks > > sunrpc: Create a per-rpc_clnt file for managing the destination IP > > address > > > > include/linux/sunrpc/clnt.h | 1 + > > net/sunrpc/Makefile | 2 +- > > net/sunrpc/clnt.c | 5 ++ > > net/sunrpc/sunrpc_syms.c | 8 ++ > > net/sunrpc/sysfs.c | 168 ++++++++++++++++++++++++++++++++++++ > > net/sunrpc/sysfs.h | 22 +++++ > > net/sunrpc/xprtsock.c | 3 +- > > 7 files changed, 207 insertions(+), 2 deletions(-) > > create mode 100644 net/sunrpc/sysfs.c > > create mode 100644 net/sunrpc/sysfs.h > > > > -- > > 2.29.2 > > > > -- > Chuck Lever > > >