Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1685689pxj; Wed, 19 May 2021 11:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7NtjwcX/vf0cGSfpp3Gn2Cgz13cdd3RjIqigrzdoGHNkyd/qDFkRuXMz0GEjUqRpNHP9c X-Received: by 2002:aa7:c6cd:: with SMTP id b13mr424236eds.94.1621448798972; Wed, 19 May 2021 11:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448798; cv=none; d=google.com; s=arc-20160816; b=x2XuSRlXuZoTnjU9Ad8DSZzyXSm8e5sOeIdwDBgtw3VNvqpsIsh0oCIVTnghahWagF QYHqAxim0P+BLcDwEf+Mo1hunPjsExnpDWYoVRC7oOcMP2Q0Tvk8gfoA4TldMx5rKbPP 29Rov1McU3xwoRIqDfZq1hhIIMJtemuwcsYCEbpSCT6/o+IqpGHs3B6G8YeHCUXCJS/i 3Lj/hQwSSZgYeRQlvH5lZocf802TBux4pzRef6WqHYMPlzDZeqlLbXHKZUQDtNgOdMvt haarCR+gD3IIEk4A7l9Zsv6TPZQh089mqnyhrfB3nKj3l28TZWlIzCvIqefSFKhEXiH9 EmRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=4vi7TGcSWHc36ouP2jLojiKPOiXNeeV1MpskNXM7weI=; b=uDHaoT1PA6Fbp1CMGvTGawO9V1CGLLu0I1E95jzYg8CK/dOA9vop41TM2jUFAdtjZo R4G0vNi/R5inZ5tyY4A+lXBFhzYH7ukVFtP9ov/fUFJpLdbI3CqBEimgwyx8T24gxI4P F3f1Oi+ObkelRzoFd/A603IQo3hfU8VdANMNjFUblvxbca5A9N2RBLOqwnKB4fugjieI WxScs0/xMLaHiobrIbn3TA/NdJxdEW81f1rd4TF1VwdRV1ju9yr6bUZrZZcqhy4cX3YK 4r0zrIUrMdNvYL+igfe8ShmIvGmuouF2iDr8BGHtr+G502ZAUbAW7F+yK+q410y1D5V5 dvHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=eDLjdpax; 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 bx25si7790871edb.505.2021.05.19.11.26.15; Wed, 19 May 2021 11:26:38 -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=@fieldses.org header.s=default header.b=eDLjdpax; 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 S241076AbhERRhK (ORCPT + 99 others); Tue, 18 May 2021 13:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240146AbhERRhJ (ORCPT ); Tue, 18 May 2021 13:37:09 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD727C061573 for ; Tue, 18 May 2021 10:35:51 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 31DB46482; Tue, 18 May 2021 13:35:51 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 31DB46482 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1621359351; bh=4vi7TGcSWHc36ouP2jLojiKPOiXNeeV1MpskNXM7weI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eDLjdpaxo4nsSZZckaBJSZPbYM1KSG15d/rpkrYMVh8ObEGHO7mxKPidwT8wunw3F ZanC5b/8gQ7n9218AgIEx/alyVIwxZUrpVOVpX+7iZqJ76N2nQp+QbgzlBZ2b8tnYd 2aFo2CLGZdUXWaGSKnNjpD7CiQdaQNnD0iFbqAQQ= Date: Tue, 18 May 2021 13:35:51 -0400 From: "J. Bruce Fields" To: Olga Kornievskaia Cc: Dai Ngo , linux-nfs , Trond Myklebust , Chuck Lever Subject: Re: [PATCH v5 1/2] NFSD: delay unmount source's export after inter-server copy completed. Message-ID: <20210518173551.GA26957@fieldses.org> References: <20210517224330.9201-1-dai.ngo@oracle.com> <20210517224330.9201-2-dai.ngo@oracle.com> <20210518172334.GC25205@fieldses.org> 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) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, May 18, 2021 at 01:31:11PM -0400, Olga Kornievskaia wrote: > On Tue, May 18, 2021 at 1:23 PM J. Bruce Fields wrote: > > > > On Tue, May 18, 2021 at 01:16:56PM -0400, Olga Kornievskaia wrote: > > > General question to maybe Bruce: can nfsd_net go away while a compound > > > is using it ? > > > > No. Any server threads for that container should be shut down before > > nfsd_net goes away. > > Right, sorry but the async copy is a task that works after the > compound of copy. OK, I thought you were talking about normal compound processing from server threads. > You say "threads .. should be shut down", who makes > sure of that (meaning should async copy code make sure of it)? Just looking at the code... nfsd4_shutdown_copy() is called when a client is destroyed to stop any in-progress copies. --b.