Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp717015pxb; Thu, 17 Feb 2022 13:09:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBwonQCR/ANmLWF7aBNZUINwtniFYHLgeVyVO+8VvgCU51Yr00QG94JrhLmHAehHOOhpuf X-Received: by 2002:a17:902:e5c2:b0:14d:9b82:13fe with SMTP id u2-20020a170902e5c200b0014d9b8213femr4497014plf.144.1645132156079; Thu, 17 Feb 2022 13:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645132156; cv=none; d=google.com; s=arc-20160816; b=buIjPEy/t97yEdgvdVsMdpUAz8t1BW2Pv53okG8h/s9PXn9d+CQ9djLBisms8WwvtP hLvjxC5wA7Iarr2wVmdO48cCoRoRzKRu2OCI2CEv54rSz8qFzYRc9Mc3pjzpl1wbN8/m l2l5S3LB+ByMpBDGWiVI+sAQV6CUjB98U2D6dWgsIuO2m9J/nzcNETXjvCACxAgWQkwb jvOeQOXlLdMEPyVVyy96sdkO1aEY1ZSWVbehBHduQKpwTFgoinVUDmmrdNx+9K8HAlBP aM3WJ4KlZzfuLnxPPJpde0/ins72k6x7cAuQrerGLharRUPW6/vSyMGjv/hq/QaH4TUc nP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:subject:cc:to:from; bh=kVzXiM9nhgLW3DF9IUfxO3lRAnyeNm/fCIeIm78P3Ls=; b=XntFG5rzqDB1itShuc7Dgv90s5C6DHn5e/gqcV/aAG9BN+PWnlSDVYAKpa6u9T86qN ylXdjGq5MGn9imfmYc8kjXyF+9dt2/IxobRNkJgFFNKXf5an1LkW5zsetwhjSdXvWfGe rRs0oWV9T1tuqzUH7Ri/7D/ZpDFJCilUV3cRILBN5zEnd9ua2x6btOmH6/6DgJZ2BmNO kSPDyxRWfc5dJMo8w0x5ze8ZxZzPPYEPfQTjpMLw9COFdvp+jefF7nj7GcNhbLjSmJsi Tax/VGRVxfgl2vgmBnv2SYHa2QI3FIPMRiuwjaqzyg+rKJffjrBCVL1oJcrsf8J1SXm7 v0CQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y66si8996822pgb.132.2022.02.17.13.08.50; Thu, 17 Feb 2022 13:09:16 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242746AbiBQQFe (ORCPT + 99 others); Thu, 17 Feb 2022 11:05:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbiBQQFe (ORCPT ); Thu, 17 Feb 2022 11:05:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87CE629C123 for ; Thu, 17 Feb 2022 08:05:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 239BB60BB8 for ; Thu, 17 Feb 2022 16:05:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56754C340E9; Thu, 17 Feb 2022 16:05:18 +0000 (UTC) From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: neilb@suse.de Subject: [PATCH v2 0/8] Clean up struct svc_serv_ops Date: Thu, 17 Feb 2022 11:05:17 -0500 Message-Id: <164511349417.1361.12607852846407534019.stgit@klimt.1015granger.net> X-Mailer: git-send-email 2.35.0 User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1673; h=from:subject:message-id; bh=jxsGghYLWniPxSqhtAeuK0QcrMANzHGYgbpiCvsuOZA=; b=owEBbQKS/ZANAwAIATNqszNvZn+XAcsmYgBiDnIkdqUSMsNG0GV9rdIbzDUlHjV3f9CoPoqLCG41 y8ovJ+eJAjMEAAEIAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCYg5yJAAKCRAzarMzb2Z/l1f5D/ wMo7qDUih89gOeTIfpssiII+hMWHgxLfbZQ8ax8qW1RF2FNE54gzW4uohlNZ6uQn+Uk9ZmV/f8Tg7Z q6sjjL5SpkQWnZxDuEBpTxblztkMwsrWwRvX0T07fI7wiNqadXJrdsOXA+DQiwblpb3UdGU6IaERpv 8L8/lXMvWilrTMj6mpEFUCHy7iirbKBnbe9+Nh7dVWTChzW24sBf1iU7NKUdZIsUMSpo3vlikirHrv 7mm5KX/sZjbnRLyGcdF0jdhrR6RJHtOGs6jSlGgdupqHhxgMjTzaHxvlPGlX8iaKjnRYhm3YiV+T2N s6Y+HicWGdZHMlA+fucw0otNi4l1T1T5HHLffwR4nwS5tyvn1VsWXtipTEYYyNVCdhCa1DbBA2eybd 7Ex3Q7MnXz8lTU0J6v/Jj7ZNlsZYV9xLGNwYP18X/HUSEHt3LM04M9u3zeHoTz6g0pGWboNd/6psRf NImpKEtAj7SvCDvFnPNmHt7vDEnI5nuFm2C5BgnPHG89Z0RdN7rEMUam3PlYAflKwuJ3F5qbwd26HT /zIfFj4+zTLTrGOHzwBgYLZlqOhV20KRTjHrpzhpXV2eTjJRQYAXZ5Jolo3WP1P4rHUy69bw9SGoZ2 9mnEF+Wocm/FHkPBW1e/cPsfsKM975uyFg2vDnni0a6VB/I15i/bNvc3PQ8g== X-Developer-Key: i=chuck.lever@oracle.com; a=openpgp; fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 Here is the completed series of patches to remove struct svc_serv_ops, as suggested by Neil Brown. The original material was introduced several years ago when we planned to convert the RPC server to use work queues. That work was never completed. Removal now is to eliminate some unnecessary virtual functions and to pave the way for the possibility of dynamic nfsd thread management. The full set of patches has been provisionally applied to my for-next branch to enable broad testing. Comments welcome. --- Chuck Lever (8): SUNRPC: Remove the .svo_enqueue_xprt method SUNRPC: Merge svc_do_enqueue_xprt() into svc_enqueue_xprt() SUNRPC: Remove svo_shutdown method SUNRPC: Rename svc_create_xprt() SUNRPC: Rename svc_close_xprt() SUNRPC: Remove svc_shutdown_net() NFSD: Remove svc_serv_ops::svo_module NFSD: Move svc_serv_ops::svo_function into struct svc_serv fs/lockd/svc.c | 24 +++----- fs/nfs/callback.c | 66 +++++++-------------- fs/nfs/nfs4state.c | 1 - fs/nfsd/nfsctl.c | 10 ++-- fs/nfsd/nfssvc.c | 23 +++----- include/linux/sunrpc/svc.h | 26 ++------- include/linux/sunrpc/svc_xprt.h | 11 ++-- kernel/module.c | 2 +- net/sunrpc/svc.c | 50 ++++++++-------- net/sunrpc/svc_xprt.c | 68 ++++++++++++++-------- net/sunrpc/xprtrdma/svc_rdma_backchannel.c | 2 +- 11 files changed, 122 insertions(+), 161 deletions(-) -- Chuck Lever