From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751092AbcBMSOa (ORCPT ); Sat, 13 Feb 2016 13:14:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:45889 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750879AbcBMSO3 (ORCPT ); Sat, 13 Feb 2016 13:14:29 -0500 Date: Sat, 13 Feb 2016 10:14:18 -0800 From: Davidlohr Bueso To: Peter Zijlstra Cc: Waiman Long , Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , Ding Tianhong , Jason Low , "Paul E. McKenney" , Thomas Gleixner , Will Deacon , Tim Chen , Waiman Long Subject: Re: [PATCH v2 1/4] locking/mutex: Add waiter parameter to mutex_optimistic_spin() Message-ID: <20160213181418.GA28112@linux-uzut.site> References: <1455298335-53229-1-git-send-email-Waiman.Long@hpe.com> <1455298335-53229-2-git-send-email-Waiman.Long@hpe.com> <20160212202355.GY6357@twins.programming.kicks-ass.net> <20160212221444.GC16417@linux-uzut.site> <20160213121052.GB6357@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20160213121052.GB6357@twins.programming.kicks-ass.net> 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 Sat, 13 Feb 2016, Peter Zijlstra wrote: >Can't see it do that, also, if it were to do that, we'd not be here >since having a waiter would then mean no spinners and no starvation >etc.. I was having a hard time understanding why on earth you didn't see that. And yes I was also wondering why it was even there... but I was looking at -next, where we have Ding's original patch b9ce3647b4901071b0dd35d62954a4bb0e5ba1d1.... Paul, could you drop this patch? But yeah, I do agree that waiters should also do the mutex_can_spin_on_owner() check unless I'm missing something subtle from Waiman. Thanks, Davidlohr