Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3817597rwb; Sun, 30 Jul 2023 17:13:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSjisJzq4qdzOZ2aNwCp0Mq8BpCuYZmvU6udmS4w0xiGoNFRNze76+ctJj9QD59K/IeS6+ X-Received: by 2002:a05:6a00:170e:b0:653:de9a:d933 with SMTP id h14-20020a056a00170e00b00653de9ad933mr11150159pfc.17.1690762399091; Sun, 30 Jul 2023 17:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690762399; cv=none; d=google.com; s=arc-20160816; b=lD9P+r6PhmbPh0cqnXvdlIVUkhqaF9PltaoLPCihzwW7zOmH5kuLL/Z7X3WDpq99rh jlU7pb3/St0/A9F2KURL7JoYswZtF2Y2Hezu/lh7mNWVLAAenL2uueIOnT41nqg2qfGy APRtphZTBa9mkQcnb+WyOuJWMM07OzTXl54jyWAJzG0yadg8TnK2P6wXj11XE0rt2IQE hyR3tomQFL0sX4zyVeLkCMH/8/fzi8J6s/kGF+JUPJhtAVs6NyxRWQhe8+em45xByhgp K7YAt4LxTOSvOIrxfuNSZzmqgHfAlLZi/d7BemDXf7W03o92St7B7JS5W4+OZrT0dF6C 0Nig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=8P4DO5Yb8MoO5coRiagQZZdayB7j5qMvXy/df7rnMFU=; fh=Og5waxCbnjRBFTPBetUeFbQLcOt6k9dKByzVvH6fLcs=; b=JqunvEmMceIExSmyYU7o+c0ec+F3hsFy5E8jcg+wLeWl9cSd0OhyIf4GbR3s4b8/b2 /tvoCgz80d1JyTMejC/BTPaq4aaDC9+MKAQzQGxKBQcLs0zRdnWN5nmebuTKGZt6Pt86 9U/pB8jbNUVd3KlK5wwbzOpXhcQYmLFa2NbLaSLHLN/G8NvBvsbymFV2Gw2U68QJai8e CE4IbxjhTpvENmdKFneU5QLZJHOvgmLu0EbeF34z1CYn0HNCCqUYhcbvLihOt1/JMV3H ZW88tIThp/7F25o9lc1qz79ZlVHKW9xcj6OAyt/YiZg0D0aZYU6V4pEVCdkbvOPo6/oq J30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="romHa/+B"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a056a00234300b0067566f7ab81si6589348pfj.158.2023.07.30.17.12.54; Sun, 30 Jul 2023 17:13:19 -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=@suse.de header.s=susede2_rsa header.b="romHa/+B"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbjG3W4K (ORCPT + 99 others); Sun, 30 Jul 2023 18:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjG3W4J (ORCPT ); Sun, 30 Jul 2023 18:56:09 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE4AB123 for ; Sun, 30 Jul 2023 15:56:08 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8E60C1FD70; Sun, 30 Jul 2023 22:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690757767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8P4DO5Yb8MoO5coRiagQZZdayB7j5qMvXy/df7rnMFU=; b=romHa/+Bk0YUUuFl0PJsgyKTJU/9hYofjMhOfZkbh81rDsh5Kq4YOZ+LQ+fThj8fMMj3WZ 59CWAJ4L2e4tQeeL8K654Bh18CM3mTcJCXujOP0tScHFEucD5qNJD9TgKiYQMr73AX5CmK Ub6l76OjkusSlEUGxvoyOM3UjGvKthw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690757767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8P4DO5Yb8MoO5coRiagQZZdayB7j5qMvXy/df7rnMFU=; b=WxvtvdZg9Fnbd7mbUV1Ou5lrdbMfuNNY1Zz+zvleAv661xKrXHLHsJE/38WfVQ8lCkm4jZ JQ9rkSXtNDFcYEAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 41D1413274; Sun, 30 Jul 2023 22:56:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id P8NMOYXqxmSrSgAAMHmgww (envelope-from ); Sun, 30 Jul 2023 22:56:05 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: "Jeff Layton" , linux-nfs@vger.kernel.org Subject: Re: [PATCH 06/14] SUNRPC: change various server-side #defines to enum In-reply-to: References: <168966227838.11075.2974227708495338626.stgit@noble.brown>, <168966228863.11075.8173252015139876869.stgit@noble.brown>, , Date: Mon, 31 Jul 2023 08:56:03 +1000 Message-id: <169075776306.32308.3045406213067424206@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, 31 Jul 2023, Chuck Lever wrote: > On Tue, Jul 18, 2023 at 09:37:58AM -0400, Chuck Lever wrote: > > On Tue, Jul 18, 2023 at 04:38:08PM +1000, NeilBrown wrote: > > > When a sequence of numbers are needed for internal-use only, an enum is > > > typically best. The sequence will inevitably need to be changed one > > > day, and having an enum means the developer doesn't need to think about > > > renumbering after insertion or deletion. The patch will be easier to > > > review. > > > > Last sentence needs to define the antecedant of "The patch". > > I've changed the last sentence in the description to "Such patches > will be easier ..." > > I've applied 1/5 through 5/5, with a few cosmetic changes, to the > SUNRPC threads topic branch. 6/6 needed more work: > > I've split this into one patch for each new enum. I don't see this in topic-sunrpc-thread-scheduling Commit 11a5027fd416 ("SUNRPC: change various server-side #defines to enum") contains 3 new enums, and the XPT_ and SVC_GARBAGE improvements you mention below cannot be found. Thanks, NeilBrown > > The XPT_ flags change needed TRACE_DEFINE_ENUM macros to make > show_svc_xprt_flags() work properly. Added. > > The new enum for SVC_GARBAGE and friends... those aren't bit flags. > So I've made that a named enum so that it can be used for type- > checking function return values properly. > > I dropped the hunk that changes XPRT_SOCK_CONNECTING and friends. > That should be submitted separately to Anna and Trond. > > All this will appear in the nfsd repo later today.