From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755322AbcHWUwt (ORCPT ); Tue, 23 Aug 2016 16:52:49 -0400 Received: from mga01.intel.com ([192.55.52.88]:39917 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752859AbcHWUws (ORCPT ); Tue, 23 Aug 2016 16:52:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,567,1464678000"; d="scan'208";a="1040375045" Message-ID: <1471985566.2916.18.camel@linux.intel.com> Subject: Re: [RFC][PATCH 1/3] locking/mutex: Rework mutex::owner From: Tim Chen To: Waiman Long , Peter Zijlstra Cc: Linus Torvalds , Jason Low , Ding Tianhong , Thomas Gleixner , Will Deacon , Ingo Molnar , Imre Deak , Linux Kernel Mailing List , Davidlohr Bueso , Terry Rudd , "Paul E. McKenney" , Jason Low Date: Tue, 23 Aug 2016 13:52:46 -0700 In-Reply-To: <57BCAA48.6050202@hpe.com> References: <20160823124617.015645861@infradead.org> <20160823124856.763266868@infradead.org> <57BCAA48.6050202@hpe.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 (3.18.5.2-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-08-23 at 15:55 -0400, Waiman Long wrote: > On 08/23/2016 08:46 AM, Peter Zijlstra wrote: > > I have 2 more comments about the code. > 1) There are a couple of places where you only use 0x3 in mutex.c. They  > should be replaced by the symbolic name instead. May be easier to read if (owner & 0x3) and (owner & ~0x3) are changed to something like  _owner_flag(owner) and _owner_task(owner). Tim > 2) We should make __mutex_lock_slowpath() a noinline function just like  > __mutex_lock_killable_slowpath() or __mutex_lock_interruptible_slowpath(). > > Cheers, > Longman