Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp43738pxk; Mon, 5 Oct 2020 17:09:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKXvJESkbgmisLxNw04TI9DlvB8bMw/Efr8qIlCnexEDtuKbANfcoXJtdk+qDJRVUOJ3bo X-Received: by 2002:a50:9e6a:: with SMTP id z97mr2548499ede.32.1601942943244; Mon, 05 Oct 2020 17:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601942943; cv=none; d=google.com; s=arc-20160816; b=tdx0yQAq/riV6YSwayN66Z1m4zAIegaSxzBpViqSwL/jtPhxueGN2kwJw1ZN6x8KCT 6IzDCgZ2QQi85m6DQuU28db3UzzsXtsxOX2mgErcoPbzd4Su9egJ4Sa9xueqDMHtrZai t9UAfkugojYh14Z9T3owswjldxDjnS0ttoOMVZgYGEhkm033OZ45X3GdhXasUzspKLLD p0Um5JsvQMBYyIm/MJCVK9XMDm7mbImgCjrH05XjCRne7IJhpZM/MwWFYhv3UhjTHuSV sTMcRvNR+cgPwqVMF8Mj33ck4QQmjk7cBB8s40ePraKBXLlwjyz80niVp2fgX77OjLMw yLgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XkgmFdF7iI1gr3niP5U/zLfBpTvaRznfruI/h62CcBg=; b=obUAb6L9jO/qk8BcKY+HJuw6iOuw77QuPsWZ1acCUl/ILDUD/KzCWqyCtMZu+kGviZ gZPFTQQx5QnSurwnWkD92Q3YF7lfgrmky+/PkNqQOFHUCRURNVj/g5gKu8braclsJf1h 0RWXeByZdf38Q4RWmrb0ArBeRE8t7nhiTyXuQnjVgjz3Krza3gFbEFjgIzXcJoLs867q WbRxlIz8zTFFbrsF9PYC0xnizwR3rTDiyvYpahtDy6k02kydr630mgIT+pASAmFyIZ+q uSVz5AAFL+NI5O15ew/jniOFKYJZy+p0vrYLffoj0kPcBshQkT9S/3wXYI8RcdTqb47B jvsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=APgQPusZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id on24si787714ejb.133.2020.10.05.17.08.40; Mon, 05 Oct 2020 17:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=APgQPusZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgJEXfE (ORCPT + 99 others); Mon, 5 Oct 2020 19:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgJEXfE (ORCPT ); Mon, 5 Oct 2020 19:35:04 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21BCDC0613CE; Mon, 5 Oct 2020 16:35:04 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id t14so6923903pgl.10; Mon, 05 Oct 2020 16:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XkgmFdF7iI1gr3niP5U/zLfBpTvaRznfruI/h62CcBg=; b=APgQPusZVhUfZen3mW0vDWSugR4fCD2EYJqHn4vA0UPIz7ekBt/8fNCNsU08GHUX9o DlFSTqeLmv9s3ZlFLymBfIGlCwUOXlhgYMZzkxZVitrJWrafIN4BtDHV09FGQj5+Ub8M M/N41ULrJmnVGY1/+4dAhN80rr60acAOD8NAih4MD1zMHwgHLVA8XPqtibuyyI2tVWLi 978tqcUylnk9PQLTLF8KaIUEBW/cONCg5RwLrGAFy8N72gjLWfyQx5KhL/ODi7CaiNIx 9YMFQHTURIKvFXmhoQZeQ2jGQ6hA3uG5PidGoXqnB6zTsAKzKnHgwS9J0fS6ZWmXRUSh swZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XkgmFdF7iI1gr3niP5U/zLfBpTvaRznfruI/h62CcBg=; b=LXqzo+dVoMwHEir7u7uA6skw3FEWMMvP5kXjkr5vZRp5sOrJHRwSltyG9N/rnJd8qL x0BI/CEBya3+A8yVrijw3LH/v86jARySAmQ9PhDLVRaB7r8+3oLrj15G0dP4pLPmbdAZ W8w1Y2Df93rhAJaVEKTP4gVVYQYvOSYCJadBUxP/t/vdRQfXD6xXnUbv2pokBsH3df5D F9iFIsGiZzfwes6vcknvzcBmwxFl3JCjKXeD0a1thtk4eqhp/ALcyv/QrnGmqWkv8lTH jccq03pebpouzyc7IVVbkB8iJPjpI8XUPtMQWW9Hfeilq4jlbxuqh24EQJa+Q82pWo1t /K+Q== X-Gm-Message-State: AOAM530TLyhbbBvYXjvGC9ikKGvWpR1AQkQe1l3QlptazBKS6hj9XAo1 GuiWdkLbz2ev2hlEdZbA7kk= X-Received: by 2002:aa7:971d:0:b029:13e:d13d:a08a with SMTP id a29-20020aa7971d0000b029013ed13da08amr1870528pfg.33.1601940903491; Mon, 05 Oct 2020 16:35:03 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id q6sm1144427pfn.10.2020.10.05.16.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 16:35:02 -0700 (PDT) Date: Mon, 5 Oct 2020 16:35:00 -0700 From: dmitry.torokhov@gmail.com To: Kenny Levinsen Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: evdev - per-client waitgroups Message-ID: <20201005233500.GM1009802@dtor-ws> References: <20200429184126.2155-1-kl@kl.wtf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429184126.2155-1-kl@kl.wtf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kenny, On Wed, Apr 29, 2020 at 08:41:26PM +0200, Kenny Levinsen wrote: > All evdev clients share a common waitgroup. On new input events, this > waitgroup is woken once for every client that did not filter the events, I am having trouble parsing the changelog (I think I agree with the change itself). Did you mean to say "this waitqueue wakes up every client, even ones that requested to filter out events that are being delivered, leading to duplicated and unwanted wakeups"? > leading to duplicated and unwanted wakeups. > > Split the shared waitgroup into per-client waitgroups for more > fine-grained wakeups. > Thanks. -- Dmitry