Return-path: Received: from fg-out-1718.google.com ([72.14.220.155]:37758 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbYIQXpc (ORCPT ); Wed, 17 Sep 2008 19:45:32 -0400 Received: by fg-out-1718.google.com with SMTP id 19so35603fgg.17 for ; Wed, 17 Sep 2008 16:45:30 -0700 (PDT) Message-ID: <1ba2fa240809171645ra6e7561ld96e8f505fc28c09@mail.gmail.com> (sfid-20080918_014535_934016_5802C52F) Date: Thu, 18 Sep 2008 02:45:30 +0300 From: "Tomas Winkler" To: "Johannes Berg" Subject: Re: [PATCH v2] mac80211: re-enable aggregation Cc: "Luis R. Rodriguez" , "Luis Rodriguez" , "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" In-Reply-To: <1ba2fa240809171620g99e5332y690091373e8476f2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <1221535073-6937-1-git-send-email-lrodriguez@atheros.com> <1221547036.8916.1.camel@johannes.berg> <1ba2fa240809171357p1b190760h19c3e521e100f7e4@mail.gmail.com> <43e72e890809171545k5aeaa52dje2223bdbeb97ce7e@mail.gmail.com> <1ba2fa240809171557i498cb5e1rcacb5961d8e1c3c6@mail.gmail.com> <20080917230357.GA7410@tesla> <1221692757.7412.22.camel@localhost> <1ba2fa240809171620g99e5332y690091373e8476f2@mail.gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Sep 18, 2008 at 2:20 AM, Tomas Winkler wrote: > On Thu, Sep 18, 2008 at 2:05 AM, Johannes Berg > wrote: >> On Wed, 2008-09-17 at 16:03 -0700, Luis R. Rodriguez wrote: >> >>> > What I need to next is to add is rtnl_lock >>> > qdisc_root_lock requires this. This root lock is held during requeuing >>> > which can be triggered by removal or addition of an aggregation queue. >>> >>> I saw that, but rtnl_lock() is mutex basd so no good. Hence we need >>> something that works around this. >> >> As I outlined earlier I'm pretty much convinced you need to go to the >> workqueue anyway. Use schedule_work though, not the mac80211 workqueue, >> you can't take the rtnl on the mac80211 wq. > > The Addition is done from > 1. Rate scale - tx_status context (tasklet) - need schedule here, but > I don't like this conceptually This is a real mess. Need to pass tid, addr and hw into work item, which in current late hour I can only think of adding a global list. Anyone....more ideas here.... Thanks Tomas