mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"John W. Linville" <linville@tuxdriver.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: regd: sleeping in atomic
Date: Tue, 16 Mar 2010 13:36:38 -0700	[thread overview]
Message-ID: <43e72e891003161336t1c2f905w13762dfa49257450@mail.gmail.com> (raw)
In-Reply-To: <4B9FD11E.5050108@gmail.com>

On Tue, Mar 16, 2010 at 11:42 AM, Jiri Slaby <jirislaby@gmail.com> wrote:
> On 03/16/2010 05:18 PM, Luis R. Rodriguez wrote:
>>
>> one iteration of call_crda() which happens during module
>> initialization and from what I gather I don't think the kernel is
>> happy when you mutex_lock on load routines, please correct my foggy
>> memory if I am mistaken.
>
> No, using mutex in init/exit module routines is fine. Where do you have the
> information from?

A snag I hit when trying this a while ago on reg.c. I suppose the real
issue could have been something else.

> There might be problems only with request_module,
> flush_scheduled_work or similar.

OK -- then in that case I think using a mutex would work here, unless
John spots any other issues.

  Luis

      reply	other threads:[~2010-03-16 20:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 13:26 Jiri Slaby
2010-03-16 16:18 ` Luis R. Rodriguez
2010-03-16 18:42   ` Jiri Slaby
2010-03-16 20:36     ` Luis R. Rodriguez [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=43e72e891003161336t1c2f905w13762dfa49257450@mail.gmail.com \
    --to=mcgrof@gmail.com \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /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

all inboxes | Powered by JetHome®