Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5132470yba; Wed, 10 Apr 2019 12:04:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrf01kj/CZ9adV+Uxuwko8XNjLb17hoepTTncilGHUqgG9LO3poUfIf++RzG/UED5AL+Mm X-Received: by 2002:a62:61c2:: with SMTP id v185mr45493151pfb.117.1554923081770; Wed, 10 Apr 2019 12:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554923081; cv=none; d=google.com; s=arc-20160816; b=UHvgR+Ys3hiAC/opwAkurOSxEIMWFOt4OWakeZe59fWQIKTM8IY2X4mo/Gz4y+Nk/v 7m9B+AMLOH7xUoXnkd+kToPA4oT8ixrerTHX19PJp9xTrqrHakVOOG2ALE6Lcs2IDs37 WoPlAC5bfD9JsBWmR3x5AmPftuBCLufZ9dHPq61v5rORzylBuK9QyKPzK1+QTh1wX3y4 K29g3G91VwKxaoUgQ19k2+j1rVmwaIf3iXGRHpXepI+quNUFiVUd8gqJyCs4rkdPrXo5 qfsSn+d9JksX7fRAaE4pC0/2jN+dyBujzavbJPna+9gP9xCk5m6eIc59ExBzqZO9Y8/l z9ag== 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=hYKaL8K0U3to50AcqlcfF/PMsJz+cJjPd6rXxYG+XDk=; b=MqhHg5watPpfiXsbjFX9L8nR/SLh9uqkfcY9VBuP+3hYov3nYmIsGrxwsxmHjFosb0 LJ/Dp0TdBR4K9sAuNEr+6495LVkGBeSMwJf157ZTb90ewL9BhHJIqRAgY/NEPorsCilY 64LvzJCm2t/MsHQ8O++N3gVQDf99DRbPg74K4CLdaTux1Je1fSTzB2OtgRDEFt2taSZE 8Yw9oEZ3WoKm6ox50204COW3xu7Wacz/2jB2lr4uA52GgBQCwH9R4E8SvKmjKfGdkcb3 GgblptVQ6R9nrZTbO9t9/kyADki6QTR6652Sfo+ACrAhnJ8EAJ8JIj+oURY1kk3oa1F+ aA1g== 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 j17si31610691pgk.114.2019.04.10.12.04.25; Wed, 10 Apr 2019 12:04:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729133AbfDJRXC (ORCPT + 99 others); Wed, 10 Apr 2019 13:23:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:55420 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729111AbfDJRXC (ORCPT ); Wed, 10 Apr 2019 13:23:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 19D4EAEA3; Wed, 10 Apr 2019 17:23:01 +0000 (UTC) Date: Wed, 10 Apr 2019 10:22:54 -0700 From: Davidlohr Bueso To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, Linus Torvalds , Tim Chen Subject: Re: [PATCH-tip v2 06/12] locking/rwsem: Wake up almost all readers in wait queue Message-ID: <20190410172254.ivgcgehjhqgwjtda@linux-r8p5> References: <20190405192115.17416-1-longman@redhat.com> <20190405192115.17416-7-longman@redhat.com> <20190410165013.njy5bg32pxq6syyr@linux-r8p5> <114e3bc3-3b66-4a50-d422-6a477d85fa72@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <114e3bc3-3b66-4a50-d422-6a477d85fa72@redhat.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019, Waiman Long wrote: >There are 2 major reasons why there is a limit. > >1) It will be unfair to the task that needs to spend so much of its own >CPU time to wake up too many readers. This has never been a problem before. >2) I want to avoid the extreme case that there are more than 32k readers >in the wait queue and make the count overflow. But in this case the readers are already on the queue. Thanks, Davidlohr