Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3215366pxb; Tue, 12 Jan 2021 09:03:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcNfnWJ6lOXE520Bjmj7p6RG7nzfSfD/qCj/d+V9aNcZw2HX6qdGXT/N5FmYqQzFI7KFp7 X-Received: by 2002:a17:907:700c:: with SMTP id wr12mr3827591ejb.398.1610471012825; Tue, 12 Jan 2021 09:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610471012; cv=none; d=google.com; s=arc-20160816; b=diiGJOmyek+RT3ncZiZu5OUxS7Y9bShKleIVYW9qssKigS4r9BjMwyEFzcOZlT0UBX Z8QO49Qj4wvjkDu7GcfvRfDHyLEYD8smQeQNlzVldwLrqpaEkHYwLknoFK6j92Op3PBK mHcWPbp1PDMCZiEDkxZtNs72RhkSmFXcvmRziacseHp7phEWh8ZEzU26jshrFztr9e9t KaR0m4DSuksDe7IsyCQlgapoLNddC50u3fq52EzaM5rU5u4zm4c+WT3qvfMfb6amABi4 f+qIPxdhlhDKd7UeJTTQt+r+VYnC0OY2g/OUinBcEsrY+vo6qmUNpiFjgtl2RhTTin7j vW1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=HR82j2W2ueVZ6ZjPLxUB1jr/QyYoHoPI/tiRC5gXXTU=; b=Uf/NJdWy37ZwLa9sRjF4qhjuox7sl8ix9uTFQBKZwSknshL3UpoDM9QaO+p3izP3fn vG6hnB0zB9oQChRDmMZkNYO7buvXB/6PQfYna4/yK8g36O5Y5zFYtB6FKB892C4FEsfa TfBH7jA6+BUXyJv3w2E9CeiL9IQiHZ1U4oh945yw+Wh+5vPjxU6e9ZwO3uXLpl6Hn2PG HDKJYwFZqm2PvIGgY+mW9JO+ROx0cn/rAJBdN79rL3cLKQu4eG10I/YMygWxOKNyesxw hhl1k8j9qCVtjVrPhKgXNr4XbsuCZJyJ+/QuiPka1bOf47og8E2P+t4T08iNyLq5NuGM 1tWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="ovI/qHS3"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si1602144edw.332.2021.01.12.09.03.11; Tue, 12 Jan 2021 09:03:32 -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=@fieldses.org header.s=default header.b="ovI/qHS3"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405446AbhALQ7w (ORCPT + 99 others); Tue, 12 Jan 2021 11:59:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbhALQ7w (ORCPT ); Tue, 12 Jan 2021 11:59:52 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F15EC061575 for ; Tue, 12 Jan 2021 08:59:12 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 486B41C79; Tue, 12 Jan 2021 11:59:11 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 486B41C79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1610470751; bh=HR82j2W2ueVZ6ZjPLxUB1jr/QyYoHoPI/tiRC5gXXTU=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=ovI/qHS3/sPwX6OLaw8C3LL27EmR84a4j6yiNvu/615dYX8q4G5ZhIgZDKQHLMGpN vaXeSDRo463PJBJNm2axXPLLnUIXdWpVJO2+fKnQOVCFoW4/PN5hlajyLluFp8dyjE 1TF93wYH/lTg83T+DPyaOjQhb+tUfhEQd35dodjc= Date: Tue, 12 Jan 2021 11:59:11 -0500 To: Chuck Lever Cc: Anna Schumaker , Linux NFS Mailing List , Anna Schumaker Subject: Re: [RFC PATCH 0/7] SUNRPC: Create sysfs files for changing IP Message-ID: <20210112165911.GH9248@fieldses.org> References: <20210111214143.553479-1-Anna.Schumaker@Netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jan 12, 2021 at 08:09:09AM -0500, Chuck Lever wrote: > Hi Anna- > > > On Jan 11, 2021, at 4:41 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. > > > > This is a first draft of the code, so any thoughts or suggestions would > > be greatly appreciated! > > One implementation question, one future question. > > Would /sys/kernel/net be a little better? or /sys/kernel/sunrpc ? > > Do you have a plan to integrate support for fs_locations to probe > servers for alternate IP addresses? Would that be a userspace > utility that would plug values into this new /sys API? We already have dns resolution for fs_locations, right? Why can't we use that here? Is it that the mount call doesn't give us a host name? Or we don't trust dns to have the updated IP address for some reason? --b. > > > > Anna > > > > > > Anna Schumaker (7): > > net: Add a /sys/net directory to sysfs > > sunrpc: Create a sunrpc directory under /sys/net/ > > sunrpc: Create a net/ subdirectory in the sunrpc sysfs > > sunrpc: Create per-rpc_clnt sysfs kobjects > > sunrpc: Create a per-rpc_clnt file for managing the IP address > > sunrpc: Prepare xs_connect() for taking NULL tasks > > sunrpc: Connect to a new IP address provided by the user > > > > include/linux/sunrpc/clnt.h | 1 + > > include/net/sock.h | 4 + > > net/socket.c | 8 ++ > > net/sunrpc/Makefile | 2 +- > > net/sunrpc/clnt.c | 5 ++ > > net/sunrpc/sunrpc_syms.c | 8 ++ > > net/sunrpc/sysfs.c | 160 ++++++++++++++++++++++++++++++++++++ > > net/sunrpc/sysfs.h | 22 +++++ > > net/sunrpc/xprtsock.c | 3 +- > > 9 files changed, 211 insertions(+), 2 deletions(-) > > create mode 100644 net/sunrpc/sysfs.c > > create mode 100644 net/sunrpc/sysfs.h > > > > -- > > 2.29.2 > > > > -- > Chuck Lever > >