From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965582AbcBCTZJ (ORCPT ); Wed, 3 Feb 2016 14:25:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:43056 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965039AbcBCTZI (ORCPT ); Wed, 3 Feb 2016 14:25:08 -0500 Date: Wed, 3 Feb 2016 11:24:58 -0800 From: Davidlohr Bueso To: Ding Tianhong Cc: Peter Zijlstra , Waiman Long , Jason Low , Ingo Molnar , "linux-kernel@vger.kernel.org" , Linus Torvalds , "Paul E. McKenney" , Thomas Gleixner , Will Deacon , Tim Chen , Waiman Long Subject: Re: [PATCH] locking/mutex: Avoid spinner vs waiter starvation Message-ID: <20160203192458.GA26475@linux-uzut.site> References: <20160122105312.GQ6357@twins.programming.kicks-ass.net> <20160122105652.GE6375@twins.programming.kicks-ass.net> <20160122110653.GF6375@twins.programming.kicks-ass.net> <56A235DC.2060900@hpe.com> <56A48566.9040206@huawei.com> <20160129095347.GA6356@twins.programming.kicks-ass.net> <56AC0F74.2040808@huawei.com> <20160201100824.GO6357@twins.programming.kicks-ass.net> <20160202211906.GD16147@linux-uzut.site> <56B1A7D8.4050205@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <56B1A7D8.4050205@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Feb 2016, Ding Tianhong wrote: >Agree, but this patch is going to help the waiter in the wait list to get the lock, your scene probability looks more >too low and I don't think it is a problem. Sure, I was in fact implying its not the end of the world, although it will be interesting to see the impact on different (non pathological) workloads, even if it only affects a single waiter. Also, technically this issue can also affect rwsems if only using writers, but that's obviously pretty idiotic, so I wouldn't worry about it. Thanks, Davidlohr