Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4208810ioa; Tue, 26 Apr 2022 20:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXk0lymhzfC4RkCmpzM+VsvJp68DNdCpZl7/zXT53NjW4Yc6I4wgN54L+Mphi8w8eRBqTu X-Received: by 2002:a17:903:1cd:b0:15d:3251:9ab0 with SMTP id e13-20020a17090301cd00b0015d32519ab0mr7549951plh.22.1651031745936; Tue, 26 Apr 2022 20:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651031745; cv=none; d=google.com; s=arc-20160816; b=TDDo8FHhA4QS+fnvknk8uX6ij47epZla3ev337e84pxQXOf9EKqVKGK8Y5OtCsmB8c 5Gn4N91tieoCLU3d+aZ+PX/6HpjIqYuhBW37oqFNgaWDLJzrmUhbkC4IVjb/u9U5GRzl RaO3yIzZ888rZqlFOC1cTZlP54vER2SaUGttKyUZg4BlQgPFz6q/3UG32JVvq6VDHm1Q UaaasciY9tcb8hfTZ7rO2ZXTWc6vYBIe/7eXo2O3jvWvHLQKe+msr5S9PwfE9QnvM2Yt 6Vr/pjveIIgCqqyL5bxqyzialiWODyNph/xBJ0zX4fz3L/YbS/9VHnN+I89cUh3wKirZ P/dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gPViPUzkcVOPyOfAmKq+P6O/W5Kc0Opeg9kXNngHa1I=; b=OzZW4HZreO5RDNYVuM0xxtVnLuIWICd+zHyruxImIaweGQXZ2jCO1JSXpFq3NLE9/q xokTgvsy2MDrgT7FSfko9yGOmqEgCoubZ9nk+BH7H/Gs9HC/YQxpRBhJcg+c3td32I/U 8rYu6fRkc3P8kVd0POi++uFDzZDaQ0NoN8lufM9VJx3sEF8XiAz+if3ZbIZFlWZBK1wk yGrTMF43H/NobH5t5TK9pL0TpCSXOglAZNzqGvCjoSIDvwdr2JBOv3tHsyr5rbsOitNk uPGXPI0MQ+IaWeyLJUiOIucrhbXWwjc9QElO9B98FUiva8pxIOALA9EiG6pNwvqmrhW0 6QPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xfS13vIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170902f31100b00158f3c64e2fsi399625ple.244.2022.04.26.20.55.30; Tue, 26 Apr 2022 20:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=bombadil.20210309 header.b=xfS13vIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351400AbiDZOFr (ORCPT + 99 others); Tue, 26 Apr 2022 10:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351427AbiDZOEB (ORCPT ); Tue, 26 Apr 2022 10:04:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C45515DD7F for ; Tue, 26 Apr 2022 07:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gPViPUzkcVOPyOfAmKq+P6O/W5Kc0Opeg9kXNngHa1I=; b=xfS13vIQBZcAuG1uDcqHev2WfV 0R2SwuhYLZ6JL3OpmVoWUOstUBaNdEuzwrOIDpRvkkb4lcW9/7EX7UD5PaWSL8G70nhiVBLJ5Veo1 W6SQEhtbA6JfL9juKovh/bCf7b1Z+62QXp0zDi6U5Q8OdaonA3c596tmep2v/uSfQKJ/dOyBGH+n2 /wxna34QZpYiJKPAJmj5+ovzG++8kgSwi6KyezBiKXUu3dY5WYw8yiK9e0iT7wGc8r4qe/ElAnf2U HULNwDgEuRyb7WpIv3gnfyMWDg9CTeCObH5KB/sdPqlenKJeXxFt0v5EC/Id7ZoQtPqHxjxI5HvGl UaIj1GZQ==; Received: from [12.191.125.162] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1njLjq-00EpGT-VI; Tue, 26 Apr 2022 14:00:23 +0000 Date: Tue, 26 Apr 2022 07:00:22 -0700 From: Christoph Hellwig To: Donghai Qiao Cc: akpm@linux-foundation.org, sfr@canb.auug.org.au, arnd@arndb.de, peterz@infradead.org, heying24@huawei.com, andriy.shevchenko@linux.intel.com, axboe@kernel.dk, rdunlap@infradead.org, tglx@linutronix.de, gor@linux.ibm.com, donghai.w.qiao@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/11] smp: cross CPU call interface Message-ID: References: <20220422200040.93813-1-dqiao@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422200040.93813-1-dqiao@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 04:00:29PM -0400, Donghai Qiao wrote: > The motivation of submitting this patch set is intended to make the > existing cross CPU call mechanism become a bit more formal interface > and more friendly to the kernel developers. As far as I can tell it mostly does the reverse. The new interfaces are a lot more verbose for no good reason. E.g. this is a common pattern: - on_each_cpu(common_shutdown_1, &args, 0); + smp_call(SMP_CALL_ALL, common_shutdown_1, &args, SMP_CALL_TYPE_ASYNC); or this: - smp_call_function_single(boot_cpuid, do_remote_read, &x, 1); + smp_call(boot_cpuid, do_remote_read, &x, SMP_CALL_TYPE_SYNC); The old interface more or less made some sense. The new one is just a mess. > Patch 1: The smp cross call related structures and definitions are > consolidated from smp.c smp_types.h to smp.h. As a result, smp_types.h > is deleted from the source tree. And a lot of definitions that used to be private are not public.