Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp417868pxb; Wed, 6 Oct 2021 07:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2BIMvzT1aUdK2iTTG0cW7HhPYMv4Mw+heLZ6f09RZmklZgx2fq5kk7//Sl5TuYfXMBA8g X-Received: by 2002:a17:90a:1912:: with SMTP id 18mr11789929pjg.24.1633531425852; Wed, 06 Oct 2021 07:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633531425; cv=none; d=google.com; s=arc-20160816; b=rhx2oqlxEKIbpXqALqKmMFXVlihwZjBBc98SpWSwuF7LplWVayYIhLWYxORYbQMk1x ToIdXnXiq9vM55uB07pITgmCYMoKjIWBdMwTEkB5fpuIxpZ9Rd3dD+i36h/NT6P/JR2I NHwtYJOQv/p9eGuBx4onIUGl62G5KPsiFQP8Tb503I10I4YGH2SLO65HmuA1Bn+rDHzg aRlv/lpdKWMipPsghnS+V8jkDDXGI9QHsTmcOpcmAMINEOmiScfV4634hgBDcUwAazf9 HaTZBAClXtKqIo00Ce4DnEbARNLft8Lvwuj3dX7gZ1qVEha+k1DamQ460BtjEK9KCVjr Csow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+flmyMG69kDZzoGkK8lW60xzTf6UFtNygjOnQClfyJA=; b=SFU268TDGQXoGHBqI4e+xe/hkryUjf/b8SKC7LnNYLzQkOv9zYz8i6Hu4XGr4A+p9x rxa5MDK2Uv2G5m/KH+wTykihx5rQfpI6Bh8vwP1hC17r9H83WUOaYCnqrgGIdFpEWnMc pdnLGbksmWYfF723SRoojGEOMzNoXJmK9fQlVDrGg/CeLq9cjUHmUx/lxAZzkN+MD+Xw nlXH8ImFoBjqFkPB3BTUPMfNEYun8Ty3ZbSQTQxorn1AcR1Cl5hlCGZSB39Wf+cmigro xlbQiwMpEadm5C2e32vRnJZIFxgHkbxH5f8WjVlA6btUsHtZjVkqb/CMK2gGEPxDcFme rM3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U4+WzSYA; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si25234876pgv.464.2021.10.06.07.43.20; Wed, 06 Oct 2021 07:43:45 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=U4+WzSYA; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbhJFOpL (ORCPT + 99 others); Wed, 6 Oct 2021 10:45:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:43815 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238226AbhJFOpL (ORCPT ); Wed, 6 Oct 2021 10:45:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633531398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+flmyMG69kDZzoGkK8lW60xzTf6UFtNygjOnQClfyJA=; b=U4+WzSYAl7NEoyEharZgfoAeS6ZADIeFyNsYfQwCFhzyMEd2asyj+7NkIidcxUrlXPDce9 GN08f4yzcIncB5UHDgQ+FHX4gu4/rCxHE31izJ7bsNGDJNjDBFPOwhVhb+tgy0NUIkbr3J jv+tDaEG3GLJkEiigYN8i1DZ2EeEIBk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-54-_O_ndyfuNEeYrHgSN69CoA-1; Wed, 06 Oct 2021 10:43:17 -0400 X-MC-Unique: _O_ndyfuNEeYrHgSN69CoA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6A56B8010ED; Wed, 6 Oct 2021 14:43:16 +0000 (UTC) Received: from [10.10.66.2] (ovpn-66-2.rdu2.redhat.com [10.10.66.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00A6060877; Wed, 6 Oct 2021 14:43:15 +0000 (UTC) From: "Benjamin Coddington" To: "J. Bruce Fields" Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH] NFSD: Keep existing listners on portlist error Date: Wed, 06 Oct 2021 10:43:14 -0400 Message-ID: <053E93B5-0DFB-4A20-9742-F3894E2BE224@redhat.com> In-Reply-To: <20211006143335.GA15343@fieldses.org> References: <45b916f1aa3fb7c059a574f61188a8f2f615410e.1633529847.git.bcodding@redhat.com> <20211006143335.GA15343@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 6 Oct 2021, at 10:33, J. Bruce Fields wrote: > On Wed, Oct 06, 2021 at 10:18:05AM -0400, Benjamin Coddington wrote: >> If nfsd has existing listening sockets without any processes, then an >> error >> returned from svc_create_xprt() for an additional transport will >> remove >> those existing listeners. We're seeing this in practice when >> userspace >> attempts to create rpcrdma transports without having the rpcrdma >> modules >> present before creating nfsd kernel processes. Fix this by checking >> for >> existing sockets before callingn nfsd_destroy(). > > That seems like an improvement. > > I'm curious, though, what the rpc.nfsd behavior is on partial failure. > And what do we want it to be? > > If a user runs rpc.nfsd expecting it to start up tcp and rdma, but > rdma > fails, do we want rpc.nfsd to succeed or fail? Should it exit with > nfsd > running or not? I lean toward having it fail - but I think that's a different patch for rpc.nfsd. Right now rpc.nfsd exists without error, but you end up without any listeners at all. Do you want a patch for rpc.nfsd instead? Ben