From owner-svn-src-head@freebsd.org Thu Sep 17 07:39:49 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B33D49CEFC7; Thu, 17 Sep 2015 07:39:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BC941EF2; Thu, 17 Sep 2015 07:39:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A698B1FE023; Thu, 17 Sep 2015 09:39:47 +0200 (CEST) Subject: Re: svn commit: r287892 - head/sys/dev/usb/wlan To: Adrian Chadd , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201509170301.t8H31KdP042687@repo.freebsd.org> <55FA6C62.6010705@selasky.org> From: Hans Petter Selasky Message-ID: <55FA6EA2.8050809@selasky.org> Date: Thu, 17 Sep 2015 09:41:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55FA6C62.6010705@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 07:39:49 -0000 On 09/17/15 09:31, Hans Petter Selasky wrote: > On 09/17/15 05:01, Adrian Chadd wrote: >> Author: adrian >> Date: Thu Sep 17 03:01:19 2015 >> New Revision: 287892 >> URL: https://svnweb.freebsd.org/changeset/base/287892 >> >> Log: >> Use DELAY() rather than usb_pause_mtx() - the latter releases the lock >> before waiting, which prevents the lock from really acting like >> a hardware serialiser. Sigh. >> >> Modified: >> head/sys/dev/usb/wlan/if_rsu.c >> > > This cause a lot more CPU to be burnt. Is there no other way to fix > this? Using an SX lock? > > --HPS > This will not help anything, because at every control request the same lock is dropped again. You need to add an SX lock there, and should revert this pause->DELAY change :-( --HPS