Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp140577ybp; Wed, 16 Oct 2019 15:21:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC2ymOJhYmxEtTwz7wwkUa5+HsRaan5aOKFrQt6N2bmpQJ41UCzaP1STSJw28GSNY20pQT X-Received: by 2002:a17:906:f15:: with SMTP id z21mr594870eji.119.1571264493236; Wed, 16 Oct 2019 15:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571264493; cv=none; d=google.com; s=arc-20160816; b=IFX5PGE8Lz3JTzDLcHGb1NjiQGJlRGZOnKt27LF0/NbNpmIuzDZSFGcYme61L4FlBD syAMUfEKxYIxvd1k95OASQ2PBX3JZUei4sJLUBoh5PTk2BL+O44IYBmmO0GxNq7hNVoR eZNjJq/oB4fBSaw/WJXBAJuzBMR+fw2LEjrsMVKQZtt4WzjU7inOsjEaOVjg5E3yhDdv yvNkDipiK0L0ZMEAa1qhybzGFho85nAFzkMLHTiAvsRoeyDrbVBL0JZOAeMOUxDRuFvQ nRQaly0R4p4fM9/EH7CH2iHJIaIum8dJzJMtAdaY9eWjeFd7doGGwDdN+T0ugVfn7JBX EaTQ== 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; bh=x4sUXBF9N+gOqGoXUSe/0E2VksmAjHdkiv7KSR2ftGI=; b=av75YATdzLWoeqt7I8XhGUN/s7jXYP6dET/Hq04uoQ2yECbBFx6+XKdtLC6YQApc2w 1Uhb4EXv62HUMUOSuD6irBArk0a6w95Ofg7Xeej/gGcX07DUQLQjLl5NekzUKZu5MzT1 RiKnvQJbNL6RiOC3yQfzd0VhJJFdTNP0ySzY/12Cx6E9k/WdblijidJMmXmoEAdi/ieT 64/K9gcWkDvdRysbC1MelFNFkYLjECrDKIj0bGDxLHD+ED1iYVKm0fZj7a7+U3me0f72 lrAh7GLh0rIgsLrKkYCYENbvlSsOR2nRdEMaSGsByS/EiM+nrvT+fYVrul/Vs6bCQFd/ RGwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KN++Zn81; 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 c9si242772eda.229.2019.10.16.15.20.38; Wed, 16 Oct 2019 15:21:33 -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=KN++Zn81; 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 S2404962AbfJPPcN (ORCPT + 99 others); Wed, 16 Oct 2019 11:32:13 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38299 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbfJPPcM (ORCPT ); Wed, 16 Oct 2019 11:32:12 -0400 Received: by mail-lj1-f196.google.com with SMTP id b20so24510225ljj.5 for ; Wed, 16 Oct 2019 08:32:10 -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=x4sUXBF9N+gOqGoXUSe/0E2VksmAjHdkiv7KSR2ftGI=; b=KN++Zn81C01LK7bngv2WQhecCB2pvDWa6MiPOCNK9giCb55GzPd38NprLWCi9y4Rmp G5JVpEFhN07gxtvQKkcodZ0c/iin5yb7op+6svXAeHTJxJPM5HZz2LuFX2hGczINIWnp zjAlhPJ3IIlR8ZNhwPZ4TPeH42AI6XYGcDMmI= 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=x4sUXBF9N+gOqGoXUSe/0E2VksmAjHdkiv7KSR2ftGI=; b=uHQyc84jtG9yhtaDKwVl/mW0JofwcKsrFKX02nI20lPNpI5IDwJGAVDfgq0AYv2uHI 5By8Va647NgxI4Jgb/c9fQO++kuUnfG2QDyx0gAR2No13alpkNjUKNR8iTkIam9Zr9iL qk7AMTqt36NGYIRf8Bz87QMFH+aWsxIxKASZ/Amek6fcwKiY0lT6tCynNUlBbgrz1TUZ iWKCIhJnQbqiqNB88RbCWEZeUWlB7Xp5gSZsQU8kBJFvGK9PN6KkG7wpuhwEcEKlZIPO gklHkXRp/J9T0SmcgRcn2DcL2Z4UkZyh3NE4rojyJ/t1I6Oanris5FetdY/qjwCuTpCZ fwYQ== X-Gm-Message-State: APjAAAW5l0Cbm5ijBroJf2UXf8cV6ll+MfTjJ85kzB6hb7l6OsLTCPTr bpKaPZ/FVNLBvucqIenNgfcMmaCqEZ0= X-Received: by 2002:a05:651c:102e:: with SMTP id w14mr19570568ljm.159.1571239929340; Wed, 16 Oct 2019 08:32:09 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id m10sm6270932lfo.69.2019.10.16.08.32.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2019 08:32:06 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id l21so24514031lje.4 for ; Wed, 16 Oct 2019 08:32:05 -0700 (PDT) X-Received: by 2002:a2e:545:: with SMTP id 66mr4189350ljf.133.1571239925218; Wed, 16 Oct 2019 08:32:05 -0700 (PDT) MIME-Version: 1.0 References: <157117606853.15019.15459271147790470307.stgit@warthog.procyon.org.uk> <157117608708.15019.1998141309054662114.stgit@warthog.procyon.org.uk> <6900.1571235985@warthog.procyon.org.uk> In-Reply-To: <6900.1571235985@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 16 Oct 2019 08:31:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 02/21] Add a prelocked wake-up To: David Howells Cc: 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 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, Oct 16, 2019 at 7:26 AM David Howells wrote: > > Btw, is there any point in __wake_up_sync_key() taking a nr_exclusive > argument since it clears WF_SYNC if nr_exclusive != 1 and doesn't make sense > to be >1 anyway. Ack, looks sane to me. We have _very_ few users of nr_exclusive. I wonder if it's even worth having at all, but it's definitely not worth it here. I'd love for nr_exclusive to go away and be replaced by WF_ALL instead. Right now it looks like there is one SGI driver that uses it, and the sbitmap code. That was all I could find. Oh well. You removing one case is at last a small amount of progress. Linus