From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: alan@lxorguk.ukuu.org.uk
Cc: david@fries.net, linux-kernel@vger.kernel.org,
p_gortmaker@yahoo.com, netdev@vger.kernel.org
Subject: Re: [PATCH 2/2] ne.c msleep not mdelay
Date: Sat, 30 Aug 2008 23:36:47 +0900 (JST) [thread overview]
Message-ID: <20080830.233647.05599714.anemo@mba.ocn.ne.jp> (raw)
In-Reply-To: <20080830095906.6cad8647@lxorguk.ukuu.org.uk>
On Sat, 30 Aug 2008 09:59:06 +0100, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > mdelay(10) replaced by msleep(10) to give up the CPU, it's just
> > waiting for an interrupt, so timing isn't critical.
>
> It is too critical for a reschedule to occur.
>
> NAK this one.
There are already some msleep() in probe_irq_on() which is called just
before here. And this part is not protected by any spinlock or
preempt_disable.
So, if rescheduling was dangerous here, we already have potential
problems, no?
---
Atsushi Nemoto
next prev parent reply other threads:[~2008-08-30 14:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 2:44 David Fries
2008-08-30 8:59 ` Alan Cox
2008-08-30 14:36 ` Atsushi Nemoto [this message]
2008-08-30 14:44 ` Alan Cox
2008-08-31 17:30 ` Atsushi Nemoto
2008-08-30 14:57 ` David Fries
2008-08-30 14:58 ` Alan Cox
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=20080830.233647.05599714.anemo@mba.ocn.ne.jp \
--to=anemo@mba.ocn.ne.jp \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=david@fries.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=p_gortmaker@yahoo.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®