From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 320DBCA9EA6 for ; Fri, 18 Oct 2019 12:48:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 15EF321835 for ; Fri, 18 Oct 2019 12:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633981AbfJRMs5 convert rfc822-to-8bit (ORCPT ); Fri, 18 Oct 2019 08:48:57 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56818 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2634008AbfJRMsr (ORCPT ); Fri, 18 Oct 2019 08:48:47 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1iLRgL-0007C8-O7; Fri, 18 Oct 2019 14:48:37 +0200 Date: Fri, 18 Oct 2019 14:48:37 +0200 From: Sebastian Sewior To: Thomas Gleixner Cc: Alexei Starovoitov , David Miller , Daniel Borkmann , bpf , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Peter Zijlstra , Clark Williams Subject: Re: [PATCH] BPF: Disable on PREEMPT_RT Message-ID: <20191018124837.vzfh425lasxrf7dv@linutronix.de> References: <20191017090500.ienqyium2phkxpdo@linutronix.de> <20191017145358.GA26267@pc-63.home> <20191017154021.ndza4la3hntk4d4o@linutronix.de> <20191017.132548.2120028117307856274.davem@davemloft.net> <20191018055222.cwx5dmj6pppqzcpc@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 2019-10-18 13:28:21 [+0200], Thomas Gleixner wrote: > The local lock is a 'sleeping' spinlock on RT (PI support) and as any other it is a "per-CPU 'sleeping' spinlock on RT". Which means that it can be acquired on multiple CPUs simultaneously (same like preempt_disable(),…). > RT substituted lock it also ensures that the task cannot be migrated when > it is held, which makes per cpu assumptions work - the kernel has lots of > them. :) … > tglx Sebastian