Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3222077imu; Sat, 24 Nov 2018 00:27:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uu+61cNSAr30yKU9a8K4DsL4gmyLIZcsrOjdHhV/h2QxsAYkTo8xM8luzmO3OZmnihkxOX X-Received: by 2002:a17:902:e012:: with SMTP id ca18mr19140904plb.218.1543048044381; Sat, 24 Nov 2018 00:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048044; cv=none; d=google.com; s=arc-20160816; b=FB5cnwalGgm0oe7orpRxMfKEzUUT93lFWVrOgeeK4/r2B9JQo7+cS3dZ6gpQOfWFi6 DyfARQbcLAMnbCjCEtiSzGOHPx2DiPAZMZMwREwMtAaVKPbMAMtTdtOYr04iQqNRndqA xFYfl0yIm7WuL1bjCTd6TVZrCS7ivWO3QScAtdPX9Z5DmzwlB56OMkzitRi/9zcFgnx0 U29bHlcnpU2kg9WSdUZ5q5NzPdFw0DRnukmkJBR8I6ZTr56UwUdE5V4RwXaC1ve3lFbI Hu0XXINj133CoB3JlqOD1TYJpwk2J2I42niR/lmKw0D/Src4SaExsRvRZMGY0D7WvXfu xFcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=v7ejSyTMg67eu2zMoH6Ukr3hGgezwv/aHAmopybV9xY=; b=a2V/u+k/v/uISjiwSX9r0ajhesMVD1RrnqZb51x+7L5TPNnEEuBx9Gw89LG0N4NIZh 4nBytE9BExSSKnyVN441TUAeh58sp98mY4jTC6/BSzWcIoCzKhGd9rLjTueGbYsA0tAN 8njw66//+CFyKyfk52GxzpKXcWmAK7KEWFCW8w8e9hnPgZOicQZBWq7sGvZuprdzA7RP OmeDeUXCCKdQajmg7smmVo3q57QNLH5iKC1FiWmzM8ymYBAK4EXJuAZpL/DE3Jo9wC4F BJMtE70DzhKkeChWxrNG+6qDKuW/K18Rrro/I4c3ll2VKjflJcn4AsWrQ//kvAq9birc eEqg== ARC-Authentication-Results: i=1; mx.google.com; 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 m68-v6si24640752pfm.78.2018.11.24.00.27.09; Sat, 24 Nov 2018 00:27:24 -0800 (PST) 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; 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 S2409577AbeKWVuN (ORCPT + 99 others); Fri, 23 Nov 2018 16:50:13 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:50109 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731891AbeKWVuM (ORCPT ); Fri, 23 Nov 2018 16:50:12 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1gQ9Hn-0004cl-O2; Fri, 23 Nov 2018 12:06:11 +0100 Date: Fri, 23 Nov 2018 12:06:11 +0100 From: Sebastian Andrzej Siewior To: Andrea Parri , Peter Zijlstra Cc: zhe.he@windriver.com, catalin.marinas@arm.com, tglx@linutronix.de, rostedt@goodmis.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, boqun.feng@gmail.com Subject: Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT Message-ID: <20181123110611.s2gmd237j7docrxt@linutronix.de> References: <1542877459-144382-1-git-send-email-zhe.he@windriver.com> <20181123095314.hervxkxtqoixovro@linutronix.de> <20181123110226.GA5125@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181123110226.GA5125@andrea> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-23 12:02:55 [+0100], Andrea Parri wrote: > > is this an RT-only problem? Because mainline should not allow read->read > > locking or read->write locking for reader-writer locks. If this only > > happens on v4.18 and not on v4.19 then something must have fixed it. > > Probably misunderstanding, but I'd say that read->read locking is "the > norm"...? > > If you don't use qrwlock, readers are also "recursive", in part., > > P0 P1 > read_lock(l) > write_lock(l) > read_lock(l) > > won't block P0 on the second read_lock(). (qrwlock somehow complicate > the analysis; IIUC, they are recursive if and only if in_interrupt().). ehm, peterz, is that true? My memory on that is that all readers will block if there is a writer pending. > Andrea Sebastian