From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935144AbcHJTMt (ORCPT ); Wed, 10 Aug 2016 15:12:49 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34242 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941041AbcHJTMd (ORCPT ); Wed, 10 Aug 2016 15:12:33 -0400 Date: Wed, 10 Aug 2016 11:29:05 +0200 From: Peter Zijlstra To: Waiman Long Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , Ding Tianhong , Jason Low , Davidlohr Bueso , "Paul E. McKenney" , Thomas Gleixner , Will Deacon , Tim Chen , Imre Deak Subject: Re: [PATCH v4 3/3] locking/mutex: Ensure forward progress of waiter-spinner Message-ID: <20160810092905.GN6879@twins.programming.kicks-ass.net> References: <1468874366-56955-1-git-send-email-Waiman.Long@hpe.com> <1468874366-56955-4-git-send-email-Waiman.Long@hpe.com> <20160808173716.GZ6862@twins.programming.kicks-ass.net> <57AA1A20.4090904@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57AA1A20.4090904@hpe.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 09, 2016 at 02:00:00PM -0400, Waiman Long wrote: > >Alternative might be to use the LSB of mutex::owner, but that's going to > >be somewhat icky too. > > I was thinking about doing that. However, the owner field is used in quite a > number of places. It may be a bit risky to change all of them. Agreed. > >I'm not sure the 32bit platforms are going to be excited about growing > >struct mutex... > > Or we can make this a 64-bit architecture specific change if the increase in > mutex size is a real concern. Actually, we don't need to use a list_head > structure for wait_list. It can be just a pointer to mutex_waiter that has > the list_head structure. This can save a pointer from the structure. Just grow the thing, we can poke at it later if we get complaints.