Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2585450pxb; Mon, 11 Jan 2021 13:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9o6Q0BQkgsVNpx6xSPRZzNOjtwovBh0QkXtt0/3dXsVM79inA60btfS/+5k7UDkyIDdzO X-Received: by 2002:a17:906:e291:: with SMTP id gg17mr985949ejb.31.1610401440936; Mon, 11 Jan 2021 13:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610401440; cv=none; d=google.com; s=arc-20160816; b=0W5/JH7yG1Gg+em+TKMuAKiKy5+YLG11oltXXMwRM8sxsxYAeacfxa/z1LT02Ec4Mf 1vHrUwqvTHwpKlFX8XmYVPwihToay04As3xayF2cfa7EGd65NTvVE/rf7ErTq1/oqcNB lLodbHxaGgs+I+KCiKcKRa96tAWfUlwcrrPf1bqi13KpuqhXmewH9DbO8Rp439Pbj4tm 8EEKDvqA/e+RAu5ZWbG9LE9dcNQLZ0sKwzQKdcD24cW3kwLV8GOO+Yt8/cqPCby6Jmzf N7i/L8TCElVaiN3M7iITWz7FVGX/BE0bDR551mfLUAHrBY9zqE3EjKKMeT4HR9l/5Diy jeeQ== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=fyvIgROEJN2x9toQVhSf0VSCGowsjE1AE+luuzjB0Ss=; b=L1d4FtD4pxZ/RmO3UTS1ieWsK/ltAPSGBrf34R4EyKMWctTGSoGtL3fWvZD2hajKyR qdoS8501euA8kq9RfihE4aSrqYYjFUoWW83r55P1u4fMJvcV6Y7NLahwI34ap1oJC1ex cGRTx06tiondyr3MxgIZV6NIwhBTJ5f3MXDrZZ0C3fzUrlBEZSSzH+TRPdPdC0LT9j17 LjS1qkQ0nh8ch2Rnhp0ArAyi0wbaSfnn+pMFy71uFo3BEcGwC+B62ST+r8sXgQO0aIiA hmqocoEcbf2D2YEhToyj/o3j522/mBjIAh8hDUO6G3Ek39ftmzNcyARJFpdSJh4+rMEN /0Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GMR7+ill; 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 s23si371992eds.566.2021.01.11.13.43.35; Mon, 11 Jan 2021 13:44:00 -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=GMR7+ill; 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 S1730766AbhAKVm0 (ORCPT + 99 others); Mon, 11 Jan 2021 16:42:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbhAKVm0 (ORCPT ); Mon, 11 Jan 2021 16:42:26 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B23C061786 for ; Mon, 11 Jan 2021 13:41:46 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id w17so740220ilj.8 for ; Mon, 11 Jan 2021 13:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fyvIgROEJN2x9toQVhSf0VSCGowsjE1AE+luuzjB0Ss=; b=GMR7+illJ69oMkh1zcov8uF7iQLackwVXzEfkP4BATjDUHCeZ9N/X5mP0Pc3Bwof52 zPOWMjCsautL4UFZ69eIIIyJxbqOmPrcVC+4pn/paPjGMU2SZtaVbaTL2ioME6NS9euY aCkczVzb7gApjU3jZUgoiYKNG5hZrGZaWDdqfj8XLVHH7ng21NI9o46vzAyBuIgK4apz ZTKYQjj2s1OXaN4N5C3GcsNv4wIT5tYYGtJU6H/1yPMX1fjalYECy5GEoU5ZPBTbL3ij FMottXZymL712Bd6s0D61NSXDLb5szDTgWBp3H58yA39SCjKJSenV20uvlY/g43q7ILa 73WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=fyvIgROEJN2x9toQVhSf0VSCGowsjE1AE+luuzjB0Ss=; b=r1POREdHVnd2dw19upeNYxNCkSWLL7EL+9MVrV6ZqOTmLiYfNxRbnUNqPfb0mU8kA7 Y2e/LT5ml+r9eR7lsvKGRZjoaM8hAFZgtfzdSWIUCVMJKLByIQ88fhsuu1cnJZojI2lz Wp0jPLbR6dOka8IdGE2WocZCuaPowx22Qj/YvGDUDj0f/fL0PpOS3P6BtxLij+en8ty7 fYp7+Ef01eRqSVtjGWwmqMvgxFY7ZnpNbQYY0cmAWUhm26kZqCWCXhCx/D0YWe7Oeq4R OlCeHteaH3OuiczcKdKDOB5lh48OUsFfVqjC/vB5CAzSHpnjyLFvEKiC/1BEFSI9sj9Z phTQ== X-Gm-Message-State: AOAM5339jzxEiPchHMSQNN2uxLsK0JKYZq6vld2RJHQd/MxtniHSgtTr z5fCoOABpIZ/yPD+pyJK0gTgVIVdEEQPcA== X-Received: by 2002:a92:cd03:: with SMTP id z3mr1093050iln.181.1610401305165; Mon, 11 Jan 2021 13:41:45 -0800 (PST) Received: from gouda.nowheycreamery.com (c-68-32-74-190.hsd1.mi.comcast.net. [68.32.74.190]) by smtp.gmail.com with ESMTPSA id 143sm681712ila.4.2021.01.11.13.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 13:41:44 -0800 (PST) Sender: Anna Schumaker From: schumaker.anna@gmail.com X-Google-Original-From: Anna.Schumaker@Netapp.com To: linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [RFC PATCH 0/7] SUNRPC: Create sysfs files for changing IP Date: Mon, 11 Jan 2021 16:41:36 -0500 Message-Id: <20210111214143.553479-1-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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! 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