From owner-svn-src-head@freebsd.org Thu Sep 17 07:30:14 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 796059CEA3C; Thu, 17 Sep 2015 07:30:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 3EA95199E; Thu, 17 Sep 2015 07:30:13 +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 9F2491FE023; Thu, 17 Sep 2015 09:30:11 +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> From: Hans Petter Selasky Message-ID: <55FA6C62.6010705@selasky.org> Date: Thu, 17 Sep 2015 09:31:46 +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: <201509170301.t8H31KdP042687@repo.freebsd.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:30:14 -0000 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