Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2581890ybd; Thu, 27 Jun 2019 15:12:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVCFdkXS6orm6VuXJGiNVNwBFrdP8QGLM1Q+EzUGzd95cu8qqupWrkG/QU3BP13lQhhaF5 X-Received: by 2002:a17:90a:2008:: with SMTP id n8mr8724053pjc.4.1561673542707; Thu, 27 Jun 2019 15:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561673542; cv=none; d=google.com; s=arc-20160816; b=a5Wc5J95vzsnoZM2cGglMvaqRReXmJHFmhOl9akSo6HN8g7fLJDfW8bYz6tCVKpbkr w5/ZwWVVRxSs0byHZsS8WxP4dvAmmUFUnYcP6YhmHE1bsXztoj4VQiHF0CY7CycxOKls bytTLOcwQrVxkh/jmMoxnXvLcvPUMoiQZQge1xNvbYEFe0HzUkM4RojTZ8KUfhMKlQaz eVmrjurePk2DD5zCzMphnUNGRjg+KOsjnEWD6HwBshJGo8q9zvzlYWQtRb8nzbuPcXm8 mftEXqnV6YkQ4zxi7afNk2qCPuuPxyCPfCqxKqDdnsF1p6G6Yw4GkS7mVVg5ko15dow+ fa7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=OZ6b83d+h7uhjaIJlMKgIz6a0WqRwOVzCwxFhVUs1N0=; b=xqeygcaJLPrWnGaoDYIlxN3E48601AFQNlXGBTr9JpaBeXnN6+4Bsp2uE0DQ+awbsS 7NDkqhuAAO+QRfKvi++TohuONz11DO3CAU1F16Y4AWB4DeA6v+7ISQJkpL7tEvBXf6th lJcD+9GyGsvJgCiH58f/UsZNra+EoDxk2HUN1cE7kanawxxaO9YKQastUDS4B2HZaELy NAuDxApvHhhc18+Ce9Y2apjvONb7cmVAXtTFSiONrPWFfS6hQZP2y1JUKjJnRjHkQpNT eHY8CstcdGsfsuYfat5JEBZHGzFvPrZ2vZTpatYT1vSrj6K9xrzo6H+uXpseBDv4P6FP CSKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iTH5fCD9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si299378pgv.398.2019.06.27.15.12.05; Thu, 27 Jun 2019 15:12:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iTH5fCD9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfF0WLy (ORCPT + 99 others); Thu, 27 Jun 2019 18:11:54 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:39680 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbfF0WLy (ORCPT ); Thu, 27 Jun 2019 18:11:54 -0400 Received: by mail-oi1-f193.google.com with SMTP id m202so2771956oig.6 for ; Thu, 27 Jun 2019 15:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OZ6b83d+h7uhjaIJlMKgIz6a0WqRwOVzCwxFhVUs1N0=; b=iTH5fCD9fSTOY/FWC1ufpkj3M1LoGuojGSBbWyHQc0hhr0HqQa0DC6SmlNZQ0bdWCX d3mxXSQjKp3FSt9Vv9r5McKSyFKCWrEB4NKNvqcnhtdOYP13hPaTYnzOX14zezlZVEkW JRnGvcDfWh7faEiwZSPN1ArG9qllGtJC5+klU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OZ6b83d+h7uhjaIJlMKgIz6a0WqRwOVzCwxFhVUs1N0=; b=hM6fz5kuplmYjaxSqvN+Ok07kQjgGAAM7BkJ+GgLxnrQ+1Iav4dpS1a+W+ZzYaCO7b b9wfoEc7ZH+RsEkOKisEL1b+UkXZriXUWkG0hs1R1cy6JJxlaTdl4qiSCMPsYUdiXG4r 9xltbPhn8gFMiY0KnrqKPFxeEk7wV9mVLcrKwBldfm2kzc/cBkkDtPkrlH1pTpiGtBQq hzsMPKJYSGoU9X9KsCQgTEDsz//wdFHC1Yr93j5GM8OxmVq6p5D0f+Zq3w4bh6rVubG2 mqDuIQngQiaIN8EhlKKdeSz1wfvo4/ZhPDHp/fuB9dS5BYxdHLn/nBVMLTIBgwMLdnkQ 6Axg== X-Gm-Message-State: APjAAAUdZlxBED/PIoTJQtzgx63EOvfHK86Dab/HurVOfXBIBvSR38Xn rVd2wCJ7+U0MQr/re8o/V3NeYg== X-Received: by 2002:aca:aa87:: with SMTP id t129mr3559087oie.12.1561673513598; Thu, 27 Jun 2019 15:11:53 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id u17sm98666oif.11.2019.06.27.15.11.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 15:11:53 -0700 (PDT) Subject: Re: [Linux-kernel-mentees][PATCH] doc: RCU callback locks need only _bh, not necessarily _irq To: paulmck@linux.ibm.com Cc: Jiunn Chang , linux-kernel-mentees@lists.linuxfoundation.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, corbet@lwn.net, rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "skh >> Shuah Khan" References: <20190627210147.19510-1-c0d1n61at3@gmail.com> <20190627221045.GH26519@linux.ibm.com> From: Shuah Khan Message-ID: Date: Thu, 27 Jun 2019 16:11:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190627221045.GH26519@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/27/19 4:10 PM, Paul E. McKenney wrote: > On Thu, Jun 27, 2019 at 04:01:35PM -0600, Shuah Khan wrote: >> On 6/27/19 3:01 PM, Jiunn Chang wrote: >>> The UP.rst file calls for locks acquired within RCU callback functions >>> to use _irq variants (spin_lock_irqsave() or similar), which does work, >>> but can be overkill. This commit therefore instead calls for _bh variants >>> (spin_lock_bh() or similar), while noting that _irq does work. >>> >>> Signed-off-by: Paul E. McKenney >> >> Should this by Suggested-by? > > I wrote it and Jiunn converted my change to .rst, so I believe that > this is correct as is. > Great. thanks, -- Shuah