From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753754AbcLIItQ (ORCPT ); Fri, 9 Dec 2016 03:49:16 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35480 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753100AbcLIItM (ORCPT ); Fri, 9 Dec 2016 03:49:12 -0500 From: Boqun Feng To: linux-kernel@vger.kernel.org Cc: "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan Subject: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend Date: Fri, 9 Dec 2016 16:48:22 +0800 Message-Id: <20161209084828.11827-1-boqun.feng@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, While reading the discussion at: https://marc.info/?l=linux-kernel&m=148044253400769 I figured we might use this fact to save some extra checks in RCU core code, currently we iterate over all the possible CPUs on a leaf node, check whether they were masked in a certain mask and do something. However, given the fact that the masks on a leaf node should always be sparse than the corresponding part of cpu_possible_mask, we'd better iterate over all bits in a mask and check whether the corresponding CPU is possible or not. So I made this RFC, I did a simple build/boot/rcutorture test on my box with SMP=4, nothing bad happens. Currently I'm waiting for the 0day and trying to test this one a bigger system, in the meanwhile, looking forwards to any comment and suggestion. So thoughts? Regards, Boqun