Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp399694imn; Thu, 28 Jul 2022 04:20:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfXEMudFdNts+khGjhXXgdTWFlHucx6nPejDFVV2xX4fsFaFJLL5LFwmpg/p13RJNlJ1lG X-Received: by 2002:a17:902:a382:b0:16d:b787:9e86 with SMTP id x2-20020a170902a38200b0016db7879e86mr6190280pla.105.1659007240745; Thu, 28 Jul 2022 04:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659007240; cv=none; d=google.com; s=arc-20160816; b=U1jSZbCZ60ypS5tQFAeNLH3bHxnnSldHU61GXakUH3vNbfwsnmNeA2fUKVDRRtTrQ8 veizLNbdVsL3qpzXxeTmL7O5HNnJ35W0LqZ4TNMEuhJtgPLJxwtmz/6db1aHAzbRyg8K wQLTRRlxYu/rmfdd2CfUAod1Zz9ET6H9IGKnw7EI11YbpfMKUUeUkNL4tjSkXLcPaCxH H7CQVWXhmh+SWcdAUbQT5tTjbLL2HU/r+11zY5dSnahlMZWCGQyj3HeFtolusxzMbeSB MJFUnj63MLaxstS43leVVxQYlRkp0pi7DHglExjEPe2vt3+AllkF0tvuH+7wZEEq3g47 pT3A== 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=A5n2BUJMjQ7LATQQuPxN4M42EzWey4GzcjntO/ijx5k=; b=eA5AARuSDzs04NypVPdzFzUi/XQEFa3Nh1jtgoto1XvPjNp6MlVs2OBQLim7nsBpJF lLZmjrIo0Qg0btEy9W5gzF1zW6mo1CstQnf1Z82Y2+AgWpC7G5YXRfa4jCFXHbftX6d0 4iNHVQNHRaun2I7tQdz9XxwQQdd2PKuVjHTxcrrgE9Hof4+nSz4JhCs4V0+vM4SgLy9D Z28+yCwY7emswrjNHcWxvCPjMu37fte+qaaS2BJwVF4SSPRm20X5WGF7vk61IuFhw7zI BxlhQbQSSdOUZRtLTWw9/jylHtuj4ynqfeqP+74zMIxrnL4JixDO3i6pOsWmetI7UwY4 3d5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HHdonaXi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a17090af8d500b001f193a54751si4921058pjd.31.2022.07.28.04.20.06; Thu, 28 Jul 2022 04:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HHdonaXi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235952AbiG1LP4 (ORCPT + 99 others); Thu, 28 Jul 2022 07:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236654AbiG1LP4 (ORCPT ); Thu, 28 Jul 2022 07:15:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7728E63912 for ; Thu, 28 Jul 2022 04:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659006954; 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=A5n2BUJMjQ7LATQQuPxN4M42EzWey4GzcjntO/ijx5k=; b=HHdonaXi4LqEBbwVK1jedOTIquRraigvAIkPbKkLUqxFcuyWlJsQNoT9bni8HtF9/L87nN gY0VPFysbRaVlgGLUSSiTVKe4O3qpjQ+07hEAFZYwv9rPBFDkWQbkTvKqijB29zJ253ulA UOAUJ6vmUhsVQTFNuB0yDhEG1X8sCic= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-386-hyJNnXeyNUSDHHD7udWr7Q-1; Thu, 28 Jul 2022 07:15:52 -0400 X-MC-Unique: hyJNnXeyNUSDHHD7udWr7Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6851A85A585 for ; Thu, 28 Jul 2022 11:15:52 +0000 (UTC) Received: from [172.16.176.1] (unknown [10.22.48.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0FED7140EBE3; Thu, 28 Jul 2022 11:15:51 +0000 (UTC) From: "Benjamin Coddington" To: "Steve Dickson" Cc: "Linux NFS Mailing list" Subject: Re: [PATCH] rpc-statd.service: Stop rpcbind and rpc.stat in an exit race Date: Thu, 28 Jul 2022 07:15:50 -0400 Message-ID: In-Reply-To: <20220727172441.6524-1-steved@redhat.com> References: <20220727172441.6524-1-steved@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 27 Jul 2022, at 13:24, Steve Dickson wrote: > From: Benjamin Coddington > > When `systemctl stop rpcbind.socket` is run, the dependency means > that systemd first sends SIGTERM to rpcbind, then sigterm to rpc.statd. > > On SIGTERM, rpcbind tears down /var/run/rpcbind.sock. However, > rpc-statd on SIGTERM attempts to unregister from rpcbind > > systemd needs to wait for rpc.statd to exit before sending > SIGTERM to rpcbind > > Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2100395 > Signed-off-by: Steve Dickson > --- > systemd/rpc-statd.service | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/systemd/rpc-statd.service b/systemd/rpc-statd.service > index 095629f2..392750da 100644 > --- a/systemd/rpc-statd.service > +++ b/systemd/rpc-statd.service > @@ -5,7 +5,7 @@ Conflicts=umount.target > Requires=nss-lookup.target rpcbind.socket > Wants=network-online.target > Wants=rpc-statd-notify.service > -After=network-online.target nss-lookup.target rpcbind.socket > +After=network-online.target nss-lookup.target rpcbind.service > > PartOf=nfs-utils.service > IgnoreOnIsolate=yes > -- > 2.34.1 Hey Steve - thanks for patchifying this - I should have sent a proper patch, but the reason I didn't is that I didn't understand why we have the rpcbind.socket unit, and why that unit isn't sufficient to enforce the ordering. I don't remember the history. Will changing the After= here create a problem where rpcbind.service is up, but the socket isn't there yet, and then rpc.statd comes up and can't find the socket? Ben