Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6913511ybp; Wed, 16 Oct 2019 00:32:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL2fDJxQIwUtCwGntbub6L81cw4AWT8gk9LfYN9TqbBTcyKSo9Kg4ruo6RipO4xuyv9qoC X-Received: by 2002:a17:906:3385:: with SMTP id v5mr38262599eja.154.1571211127456; Wed, 16 Oct 2019 00:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211127; cv=none; d=google.com; s=arc-20160816; b=frNwzuNqnv/FPvzeCUlSUrKtgT5ZxywnG4oBhGl4kRDTJmyi1beOP3yIqB7JHiAshC gvMMYgYJLY0lGStEaJJZxETJzRxVoLd2J+cR5XSVTger5Y2RKnEjPI2qm1YFxH3YIoZO Pcns2xL3vTeoyM6MyUDi91NMLrz5tfjwUsnHYi3WrR8UH7x9YLsuYdSfTi6p98iMkUiY vS7s/G+gvunCe5kc4ZRgXTxyr4dcri6KGbUUGGPtO28SCC5vNugsL9e3A+dIZZ0G5F91 cXyQVqDAEVYY/o4eEDzx9GR497NPWOsELYRZprg7p2b+1CKxqNPJyipQm4/rBt/H289h ZBsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=6u9zK1BuAvjZ3bGuWVkTBg3I3N1IGM5Fep1AmpgYvU4=; b=PpDxKvpppxa/uO7KJ3DGOZj/JCR+Dgo6jJzehducolXWtTopuvGqAEsE9AJ9h3WYza FNzAYhB/fqlXEy22YvwH0ScIOK//K3PQxut6anxR01GLiZN2lpxhLqaKg+C/wBuwqzMT Az7Vuj4+/I1Iv96ca8RLfaSB8yOKBoOdKlkwXQDoqYRCdkwsSQRY8hRq08sfZWI/OKPr /lVnv/TnPe2SK5S4U1nIt4Dp9px6BKos6VPDqTVqv/W1m0g5/6bOiN9n4vifiIC9iD2N FsNJ1/dH6KELfky0emO3yzp+vqjw49SQhgzUlaoOTshIiQa+PHCafMNaQJoc6kkN52r4 clIw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e43si17400346eda.296.2019.10.16.00.31.43; Wed, 16 Oct 2019 00:32:07 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732458AbfJOWdW (ORCPT + 99 others); Tue, 15 Oct 2019 18:33:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58930 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732040AbfJOWdV (ORCPT ); Tue, 15 Oct 2019 18:33:21 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 196FD10F2E82; Tue, 15 Oct 2019 22:33:21 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-84.rdu2.redhat.com [10.10.121.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB0FA1001938; Tue, 15 Oct 2019 22:33:17 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <157117606853.15019.15459271147790470307.stgit@warthog.procyon.org.uk> <157117608708.15019.1998141309054662114.stgit@warthog.procyon.org.uk> To: Linus Torvalds Cc: dhowells@redhat.com, Tim Chen , Kan Liang , Casey Schaufler , Stephen Smalley , Greg Kroah-Hartman , Nicolas Dichtel , raven@themaw.net, Christian Brauner , keyrings@vger.kernel.org, linux-usb@vger.kernel.org, linux-block , LSM List , linux-fsdevel , Linux API , Linux Kernel Mailing List Subject: Re: [RFC PATCH 02/21] Add a prelocked wake-up MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20273.1571178796.1@warthog.procyon.org.uk> Date: Tue, 15 Oct 2019 23:33:16 +0100 Message-ID: <20274.1571178796@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.66]); Tue, 15 Oct 2019 22:33:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > Add a wakeup call for a case whereby the caller already has the waitqueue > > spinlock held. > > That naming is crazy. Sorry, yeah. This is a bit hacked together at the moment and needs some more tidying up. I've had a lot of problems with performance regressions of up to 40% from seemingly simple changes involving moving locks around - it turns out that the problem was that I was running with kasan enabled. David