Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp958907pxb; Wed, 3 Mar 2021 22:32:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkleoT1InzDGZDJg4Mm30AF1n8aLai63436z+lZ35pq/wuKb0BV8W+xsS0+imGI6goRkG3 X-Received: by 2002:a17:906:5043:: with SMTP id e3mr2599102ejk.260.1614839568812; Wed, 03 Mar 2021 22:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839568; cv=none; d=google.com; s=arc-20160816; b=XSdZs7jus1ouaOPMq3csZU7Lb/ObE9k7Z92HUvqeMQDrzdMjCHLlBwIffd6QG59ZPc pR/uVxZP85i1XeyKCVfJTLHNG7VJr1V53VEh0mt/+SgS9E59Vss8zEliJCGNdG5klVj8 eTDeG0YWaWldnVOhoOAfIjJhzXUTYJ3k6KgzItk/V0MoexFSKpqzNp3pj9Oy2gi46gjY 70DaRuD/IkD0T5HPbXOR6pz3BCw6VTCJfAecWz3s9lt6pUkqSyQ/ySts4j30KwR0t/ZS nQd0ittUhKPEA8HleATUymH1zytw+Q/lFEh0XZGM9x1CIOsuPjJTw+jPPD7bB1gLlFil +nuw== 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=0ogtEITfPsgDYDIa1aMvZZ9jIbFzpIK4PGkCCwyGrmk=; b=dlg60ow5Ii6qdAWLcY71ZPau3w4/0jrOihzOSLiQ7xGln4z/U2hRAemUVu5ecZU7x6 blnRUGN1WHOoh0G28pwgJ/n4/yN/y3syR5DlUAcXOTMPtk3NepSAOi1W6+hmewvWzxD/ UMNC1YmdyFA6BLKzRFsUBy1TVqbEIzMH/IIECEIQFgiRdDcyxoX4DMHwrS815seDI3++ pFSySItwO5sKP4xNSYGj0+NjkZDihA2l4MYXYDFoqywmHM9V8SnmjI5LnT6AczqfbChb zX2R9TjJAln3RrEh2QN/EwhvO1pyg7EMGe0Y2qbBSgwNFXY/UaOrfokybdlAGJgsQZ5D ukVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=B8CtsPZB; 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=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh22si1903661edb.456.2021.03.03.22.32.13; Wed, 03 Mar 2021 22:32:48 -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=@umich.edu header.s=google-2016-06-03 header.b=B8CtsPZB; 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=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574998AbhCBSTc (ORCPT + 99 others); Tue, 2 Mar 2021 13:19:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1575616AbhCBD5Q (ORCPT ); Mon, 1 Mar 2021 22:57:16 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDF0C061756 for ; Mon, 1 Mar 2021 19:56:35 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id b13so14350425edx.1 for ; Mon, 01 Mar 2021 19:56:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ogtEITfPsgDYDIa1aMvZZ9jIbFzpIK4PGkCCwyGrmk=; b=B8CtsPZBCfOxLejVMoG9QP/JrwrPYcFuWvrs8cEOw05DRHoK1w7QJikoYUQ0TvpWkh D/n0GI58nL7xF+5GGrEmpiVUTMAfsIs/76V9mPV6q+igyW9E1xJjvdtj3ckMB2Sun/tl x4XNGy0jaMFy8s+SOPQpGN9sFXHORahWx11ZbNUsyq5fcSkVdLQ+9PiONtrJQAqkuatZ B+72k8cQu1KS7/LTzpg/TS63vBMgQ+3GN5Nn/YjWphaeRw/xOqZljQuxlt3rpIs/bma0 nVMV7hPQSDQyYw7uavGuGFpjJv9AcbnYm/KfKFtdRWQ5pyrfc90t6a8k9YGR264UCz5p X/cQ== 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=0ogtEITfPsgDYDIa1aMvZZ9jIbFzpIK4PGkCCwyGrmk=; b=ShniVgKO+Ney0YHMZGEpovtunmJrYYE4ZtQ/IANTJWfiEh6pr4QNqCVJgjpEpxLrT3 tEnfOiFKPi9t4iDmduIG6JPgkVYoy0WkvDb8cZP3bPDGmFK3oG8H6TwUCJxNurfnXt+d Ay40ELy6JVEEZNjtphfa2JPKPuQ4+nLgneFlxOgIKK5Ex9NhCUk6tH2R0jY83+WckSj9 rXWcWmjGK/2rpFUSNYfxYSirW37NAh+Sssg8aIEyUOwbPHDoDczG5qlp/3MKoHztbs5D nLGOyYcYmNDgwf4aECC3+VRtCh8kJVqclNQAYg5fRuiNNSBHa8x34r8k0OdRrQaDJm5C 6wig== X-Gm-Message-State: AOAM533k41cODd+lQ6vieGhLvFZCjojwfy2kzvZcW/x5/9Py8awfmyOl r44AntUfFPLKPw0nI2hCHwHE5J/0YEeY9c337Og3ou0I X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr2943948edc.367.1614657394044; Mon, 01 Mar 2021 19:56:34 -0800 (PST) MIME-Version: 1.0 References: <20210215174002.2376333-1-dan@kernelim.com> In-Reply-To: <20210215174002.2376333-1-dan@kernelim.com> From: Olga Kornievskaia Date: Mon, 1 Mar 2021 22:56:22 -0500 Message-ID: Subject: Re: [PATCH v1 0/8] sysfs files for multipath transport control To: Dan Aloni Cc: linux-nfs , Anna Schumaker , Trond Myklebust Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Dan, On Mon, Feb 15, 2021 at 12:43 PM Dan Aloni wrote: > > Hi Anna, > > This patchset builds ontop v2 of your 'sysfs files for changing IP' changeset. > > - The patchset adds two more sysfs objects, for one for transport and another > for multipath. > - Also, `net` renamed to `client`, and `client` now has symlink to its principal > transport. A client also has a symlink to its `multipath` object. > - The transport interface lets you change `dstaddr` of individual transports, > when `nconnect` is used (or if it wasn't used and these were added with the > new interface). > - The interface to add a transport is using a single string written to 'add', > for example: > > echo 'dstaddr 192.168.40.8 kind rdma' \ > > /sys/kernel/sunrpc/client/0/multipath/add > > These changes are independent of the method used to obtain a sunrpc ID for a > mountpoint. For that I've sent a concept patch showing an fspick-based > implementation: https://marc.info/?l=linux-nfs&m=161332454821849&w=4 I'm confused: does this allow adding arbitrary connections between a client and some server IP to an existing RPC client? Given the above description, that's how it reads to me, can you clarify please. I thought it was something specifically for v3 (because it has no concept of trunking). As for NFSv4 there is a notion of getting server locations via FS_LOCATION and doing trunking (ie multipathing)? I don't see how this code restricts the addition of transports to v3. > > Thanks > > Dan Aloni (8): > sunrpc: rename 'net' to 'client' > sunrpc: add xprt id > sunrpc: add a directory per sunrpc xprt > sunrpc: have client directory a symlink to the root transport > sunrpc: add IDs to multipath > sunrpc: add multipath directory and symlink from client > sunrpc: change rpc_clnt_add_xprt() to rpc_add_xprt() > sunrpc: introduce an 'add' node to 'multipath' sysfs directory > > fs/nfs/pnfs_nfs.c | 12 +- > include/linux/sunrpc/clnt.h | 12 +- > include/linux/sunrpc/xprt.h | 3 + > include/linux/sunrpc/xprtmultipath.h | 6 + > net/sunrpc/clnt.c | 39 +-- > net/sunrpc/sunrpc_syms.c | 2 + > net/sunrpc/sysfs.c | 403 +++++++++++++++++++++++---- > net/sunrpc/sysfs.h | 21 +- > net/sunrpc/xprt.c | 29 ++ > net/sunrpc/xprtmultipath.c | 37 +++ > 10 files changed, 487 insertions(+), 77 deletions(-) > > -- > 2.26.2 >