From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754148Ab3AaOfm (ORCPT ); Thu, 31 Jan 2013 09:35:42 -0500 Received: from mga03.intel.com ([143.182.124.21]:53858 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753617Ab3AaOfj (ORCPT ); Thu, 31 Jan 2013 09:35:39 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,577,1355126400"; d="scan'208";a="197078772" Date: Thu, 31 Jan 2013 22:36:26 +0800 From: Yuanhan Liu To: Ingo Molnar Cc: Michel Lespinasse , linux-kernel@vger.kernel.org, David Howells Subject: Re: [PATCH] rwsem-spinlock: let rwsem write lock stealable Message-ID: <20130131143626.GB12678@yliu-dev.sh.intel.com> References: <1359537244-20588-1-git-send-email-yuanhan.liu@linux.intel.com> <20130131124004.GA12678@yliu-dev.sh.intel.com> <20130131131228.GB6627@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130131131228.GB6627@gmail.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 Thu, Jan 31, 2013 at 02:12:28PM +0100, Ingo Molnar wrote: > > * Yuanhan Liu wrote: > > > BTW, mind to tell a nice test case for mmap_sem? > > this one was write-hitting on mmap_sem pretty hard, last I > checked: > > http://people.redhat.com/mingo/threaded-mmap-stresstest/ Thanks! Is there any pass condition? I tested a while, at least I found no oops or any noisy from dmesg output. Is that OK? Well, sometimes, it will quit peacefully. Sometimes it will not. ps -eo 'pid, state,wchan,comm' shows that it is sleeping at futex_wait_queue_me(). NOTE: this happens both with or w/o this patch. Thus it may not an issue introduced by this patch? Thanks. --yliu