Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1050080imm; Wed, 23 May 2018 09:28:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZre0eEDVtPslZ6PUflaiWSBkGul/E3BK0CUMwpv1PhlqD9D0kNacTLey5o1G9zJE+FQg8Pz X-Received: by 2002:a17:902:5597:: with SMTP id g23-v6mr3602290pli.347.1527092897793; Wed, 23 May 2018 09:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527092897; cv=none; d=google.com; s=arc-20160816; b=GqQMlu/QNbBtMucAp4f3glqWZh1EOr72RioDcsV89bIGYODbQ4FStRaPUBuyY0n9pM 8cj25u4DSF3Q3/JA3vI/p0C1+DQ4IyW7HwNsmftLLsGqkrHwMRFU7+N1mCzjy1rpBCab YfsUfNEhHOe4SRgvrPCQYZJmrEKvbBj7Rkg5izOh+YporicD8ualA9CJ8vdMEZsx3A/j lRv5CmsPds9ISMDRDUCOsATu18fkIgggoCPggoth4k+q05YkADANheI19UErisJzoqWb KE6nr6iYiAUWm5zbYvDiZKNiMwKr42gyosjLHDe+kwf+MbfaYx2fiujMS55jYrvw30Iy fQoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Rdq9RuEE384H9phZM8QsbEyqVlaRUSztBgDoBWxmP98=; b=JBSjeJMUCahqzCvHToiP9ftrXwHdmesCx+Qab7BPyIcHYGijQMYiQH9KoNkfvgubpV KUiAshQdk0ZoJS3pFknCdSDdR9S7NsdjY5z7ThbR6txBZBjzW+LBfA0xuQMyFIjIi99y KabQAKo0DCT9GAFjBc/dIJSz92crj7vC34pe5/+154arl8Tn16eFHipyt7fMkwCldiOo sxdxywSNr+FE8eqB1rcP2zLOCX8i89o9M8ykXuycACOTr9Ws829vElEW0kxy6e5/NfQA EG+tin/HF4E8ySJfqN21sFqif/tsPy3g73wMyTnUdV/HTp3+RvO4sgAUxYDbjjDyj9hI 1Bxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d5X3qZ39; 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 m4-v6si14957938pgp.336.2018.05.23.09.28.02; Wed, 23 May 2018 09:28:17 -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=@linux-foundation.org header.s=google header.b=d5X3qZ39; 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 S1754763AbeEWQ0v (ORCPT + 99 others); Wed, 23 May 2018 12:26:51 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:34836 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754438AbeEWQ0r (ORCPT ); Wed, 23 May 2018 12:26:47 -0400 Received: by mail-io0-f177.google.com with SMTP id g1-v6so23514165iob.2 for ; Wed, 23 May 2018 09:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rdq9RuEE384H9phZM8QsbEyqVlaRUSztBgDoBWxmP98=; b=d5X3qZ39cjU5c+Ew980vIhdEd1T0vD00YXHVesrLCbh4VvBBnWeBPs8vDNO7Rsp1pX Lg1+R51UwMABv9btQv5mVNZQO/1cag6t+sK6qa0OucK/F/Rzo6/w1X9mNxxfpffKrvro Sr2VUyJQaAkR3ssTy4GfO/ujrqfXdq1dcQ6Vo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rdq9RuEE384H9phZM8QsbEyqVlaRUSztBgDoBWxmP98=; b=PgeTGifa1i8z1cRtUSXBhsMNpCHoazFw5FJ6+TtTDFlafYxIAkOK/r5E5liLSgvwNO jsHo2TzhbzCWQSf62M/7JEjXYG+w7JgtAzJylAY0sd9woFxoLy85hzbwKlHJ/Hn0Trh7 Z5HnFLuSlErfVOeFO8ylsvPhFKJX7ZvMtxRXczh3IUw4627Nv7rtFPxnG8N/PWVvt+yR MjVxsqvGd3YrTlrSpuWGl+beKXnPZLmaiwoeqynwbqTziFfLgkNtuXi+e4pED3uPjyXM NZOBG1pFDyPto43r3NU8HPIj3KgavqU74c7XeWXD1m4b5EIlcYluen/ipM5tjD3Ledxh 0IQA== X-Gm-Message-State: ALKqPwe/nDWmUhVSLGImmkKRe6TrkJ4aHOqhVJUrzNXTc/mwzGar+2WV c/3CI3CMON8AtSx4zyQlAiyxaybulVWcqCKXASM= X-Received: by 2002:a6b:f914:: with SMTP id j20-v6mr3382643iog.238.1527092806885; Wed, 23 May 2018 09:26:46 -0700 (PDT) MIME-Version: 1.0 References: <0879f797135033e05e8e9166a3c85628@codeaurora.org> <20180523130547.GF26965@arm.com> <20180523153607.GD2983@arm.com> In-Reply-To: <20180523153607.GD2983@arm.com> From: Linus Torvalds Date: Wed, 23 May 2018 09:26:35 -0700 Message-ID: Subject: Re: write_lock_irq(&tasklist_lock) To: Will Deacon Cc: psodagud@codeaurora.org, Kees Cook , Andy Lutomirski , Will Drewry , Andrew Morton , Rik van Riel , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Eric Biggers , Frederic Weisbecker , sherryy@android.com, Vegard Nossum , Christoph Lameter , Andrea Arcangeli , Sasha Levin , Linux Kernel Mailing List , Boqun Feng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 8:35 AM Will Deacon wrote: > In other words, qrwlock requires consistent locking order wrt spinlocks. I *thought* lockdep already tracked and detected this. Or is that only with with the sleeping versions? But yes, that's equivalent to the irq-unfairness thing we have a special case for. Linus