Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3920218yba; Wed, 17 Apr 2019 00:15:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt/Lax7CAuXci0PNgidiNRN9qNlS4miP6pJdm0oqmNbeUl+BVDarhihVWl7B07YKtwEusE X-Received: by 2002:a65:424d:: with SMTP id d13mr798136pgq.318.1555485313376; Wed, 17 Apr 2019 00:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555485313; cv=none; d=google.com; s=arc-20160816; b=qhn9izkh4zgvaUlSOEn9aG/wQc1Bw1AlYdi1RJUs29w3HlWBSh1xKUp7WxIKe5fVMa BpeLbXyY2BXZug1WoRZK71hfr7wgLum0mbHGouK2OdueOLldvxpdEAVgGdRoaJ8on+06 KOQU+Bizv6o1GC3vqbLqgyqdEiXozNOf4qbSarhSzfJwJiF8O1weXY4G1BHny2b+17CV 0RSwoA9w9uC46/q1cp9iAA/XON6uO9iyHtYWtB5wMhVfJkM/79E5/wh+cfP+ldoMRTVt sU8OTIpZp6RjrxeVVVsJOHzyVnkCzJqXNgH6ENwqxW7ZnKdNrnDrJes4DhDhuvCTNR2B xcSA== 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:dkim-signature; bh=ay6pB6Tao4Oq8JNPjAEYYOWN5BO2WLe+exSGHeFUb9g=; b=BPM/g7QAc9oM4GsXMWRM/Tuwm/wWe0+SyMH0Y+bmyDtdpb7qsOlIyFmACMLUAoyxrk jJBA1Aeebnq9B9ojeiRsoX1zuDBkDFxIxvm6b7PxwA9AtWe2WcSiRqF1bmCUmQ/6Z/Zc 6AgTprtn693G0/EHWx1QwAIjbiKH8j2oErsZl9OCm2SIyDIMO0/kix5wXT931gTXPr0k 3yixsmnnzd07qV9A/X8P9SB6Pi7irSHPb+mf5fGoEmWcKCNSv/KUlo1abR17G56jXMUC zsb82edlqJepw1FKkRLkovAhmdynYxhpKlb49rsHn89VJDWNDEa+kIHKHg58GytPcZcn DZSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aovxQVXA; 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 p85si26488300pfi.27.2019.04.17.00.14.57; Wed, 17 Apr 2019 00:15:13 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aovxQVXA; 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 S1730924AbfDQHNW (ORCPT + 99 others); Wed, 17 Apr 2019 03:13:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:53896 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbfDQHNW (ORCPT ); Wed, 17 Apr 2019 03:13:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ay6pB6Tao4Oq8JNPjAEYYOWN5BO2WLe+exSGHeFUb9g=; b=aovxQVXAIDWql2opzekWL9IKc ZiQHOQe2VfXodYFiWW3TP/AZT18u0n9Xxr25nPVWcQiBqNl2TshVj4ycDuH+fMJ5iHKo4hp0q91pW SJmRr4Hol9lHgNCc8+Ls56QjqwXVeQ3wLs2Nz3IA+KRe6YwnfQ0yPZoAwxo8vjL3ejiD/vq3/tMj3 nEJ0Aep+iz+GwcoDi0rIZL8RZUFkz23bXqm2k4jc09nn6MZFLQBIPmbCnBFyCeuBlcWtZv7CrpRnI XY6a6e7uRFZjx3HTW4lT5rm78PONwKBtYZRuJt5w9XlyA973w4eqnqNI7eByWWq2FBgH0MLYAZNWM FpT5UG/EQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGekm-0005ey-Vl; Wed, 17 Apr 2019 07:13:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 910FD200BFB38; Wed, 17 Apr 2019 09:13:06 +0200 (CEST) Date: Wed, 17 Apr 2019 09:13:06 +0200 From: Peter Zijlstra To: Waiman Long Cc: Ingo Molnar , Will Deacon , Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, Davidlohr Bueso , Linus Torvalds , Tim Chen , huang ying Subject: Re: [PATCH v4 07/16] locking/rwsem: Implement lock handoff to prevent lock starvation Message-ID: <20190417071306.GX4038@hirez.programming.kicks-ass.net> References: <20190413172259.2740-1-longman@redhat.com> <20190413172259.2740-8-longman@redhat.com> <20190416141205.GK12232@hirez.programming.kicks-ass.net> <4b36b0a5-8507-f90c-d4a7-3f821ee8da6d@redhat.com> <55474839-269f-4dbc-23af-a9c873db6c66@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55474839-269f-4dbc-23af-a9c873db6c66@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 05:07:26PM -0400, Waiman Long wrote: > Thinking about it again. I think I will just change its definition to > "((HZ + 249)/250)" for now to make sure that it is at least 1. The DIV_ROUND_UP()