netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@suse.cz>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: netdev <netdev@vger.kernel.org>, Ivo Van Doorn <ivdoorn@gmail.com>
Subject: Re: d80211: ieee80211_hw handlers in atomic context
Date: Wed, 4 Oct 2006 18:11:29 +0200	[thread overview]
Message-ID: <20061004181129.408b4feb@griffin.suse.cz> (raw)
In-Reply-To: <4523DA7D.2080604@web.de>

On Wed, 04 Oct 2006 17:59:57 +0200, Jan Kiszka wrote:
> The reason is the invocation of rt2500usb's config handler in atomic
> context (timer handler). But this service requires schedulable context
> to submit and wait for some URBs.

Hm, I thought it had been fixed
(http://kernel.org/git/?p=linux/kernel/git/linville/wireless-dev.git;a=commit;h=d0d2b7a8ddc378ddea499f1537f6aea83d96d003).

We'll need to make something similar with sta_timer.

> That raises the question how to resolve the conflict best, at stack
> level by pushing such work into thread context (workqueues?) or at
> driver level by deferring these requests (if feasible at all without
> breaking the stack's timing)? What other callback handlers in
> ieee80211_hw can currently be called in atomic context? Given that all
> USB WLAN adapters will have to cope with this issue in some way, it may
> be wise to find a common solution.

It needs to be solved in the stack. ieee80211_hw->config callback should
return proper error code in a case of problems and this is not possible
when the work is deferred in the driver.

Thanks,

 Jiri

-- 
Jiri Benc
SUSE Labs

      parent reply	other threads:[~2006-10-04 16:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 15:59 d80211: ieee80211_hw handlers in atomic context Jan Kiszka
2006-10-04 16:07 ` Ivo van Doorn
2006-10-04 16:31   ` Jan Kiszka
2006-10-04 16:34     ` Ivo van Doorn
2006-10-04 16:38       ` Jiri Benc
2006-10-04 16:51         ` Jan Kiszka
2006-10-04 17:22           ` Ivo van Doorn
2006-10-05 11:37             ` Jiri Benc
2006-10-05 15:00               ` Ivo van Doorn
2006-10-05 15:13                 ` Jan Kiszka
2006-10-05 15:32                   ` Ivo van Doorn
2006-10-05 15:39                     ` Jiri Benc
2006-10-05 15:39                       ` Ivo van Doorn
2006-10-05 15:13                 ` Jiri Benc
2006-10-05 15:35                   ` Ivo van Doorn
2006-10-05 11:29           ` Jiri Benc
2006-10-05 14:52             ` Ivo van Doorn
2006-10-04 16:11 ` Jiri Benc [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061004181129.408b4feb@griffin.suse.cz \
    --to=jbenc@suse.cz \
    --cc=ivdoorn@gmail.com \
    --cc=jan.kiszka@web.de \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).