Return-path: Received: from s3.sipsolutions.net ([144.76.43.152]:45082 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbaAWMHx (ORCPT ); Thu, 23 Jan 2014 07:07:53 -0500 Message-ID: <1390478869.4142.11.camel@jlt4.sipsolutions.net> (sfid-20140123_130756_073560_1F679707) Subject: Re: [PATCH 5/7] mac80211: improve CSA locking From: Johannes Berg To: Luca Coelho Cc: Michal Kazior , linux-wireless Date: Thu, 23 Jan 2014 13:07:49 +0100 In-Reply-To: <1390458939.4189.50.camel@porter.coelho.fi> References: <1390227670-19030-1-git-send-email-michal.kazior@tieto.com> <1390227670-19030-6-git-send-email-michal.kazior@tieto.com> <1390316761.6199.27.camel@jlt4.sipsolutions.net> <1390380726.4334.4.camel@jlt4.sipsolutions.net> <1390382020.4334.17.camel@jlt4.sipsolutions.net> <1390385995.4334.27.camel@jlt4.sipsolutions.net> <1390394166.4189.28.camel@porter.coelho.fi> <1390403432.4334.33.camel@jlt4.sipsolutions.net> <1390403634.4189.39.camel@porter.coelho.fi> <1390458939.4189.50.camel@porter.coelho.fi> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2014-01-23 at 08:35 +0200, Luca Coelho wrote: > > I was thinking about it. This should work, mostly, as long as you're > > able to submit CSA requests fast enough and you don't use count 0 or > > 1, in which case it becomes racy. > > CSA with count 0 or 1 are really tricky in many respects. But still I > don't see why it would get racy. The interfaces will switch > independently, making their own chanctx reservations and so on... You keep forgetting that MichaƂ is mostly concerned with the non-chanctx case, in which you can't switch them independently. johannes