From: Abraham van der Merwe <abz@frogfoot.net>
To: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Cc: Linux Kernel Discussions <linux-kernel@vger.kernel.org>
Subject: Re: sleeping in dev->tx_timeout?
Date: Sun, 3 Aug 2003 21:37:08 +0200 [thread overview]
Message-ID: <20030803193708.GA13992@oasis.frogfoot.net> (raw)
In-Reply-To: <Pine.LNX.4.53.0308031505390.3473@montezuma.mastecende.com>
Hi Zwane >@2003.08.03_21:10:56_+0200
> > Is it safe to sleep in tx_timeout (in the networking code), i.e. to call
> > schedule_timeout and friends from that routine?
>
> No it's called from softirq context and with the dev->xmit_lock held in
> places.
That's what I thought. How are you supposed to wait for long periods from
tx_timeout? My problem is that I have a chip reset which takes around 10ms
(i.e. too long to use mdelay())
--
Regards
Abraham
No problem is insoluble in all conceivable circumstances.
___________________________________________________
Abraham vd Merwe - Frogfoot Networks CC
9 Kinnaird Court, 33 Main Street, Newlands, 7700
Phone: +27 21 686 1665 Cell: +27 82 565 4451
Http: http://www.frogfoot.net/ Email: abz@frogfoot.net
next prev parent reply other threads:[~2003-08-03 19:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-03 18:37 sleeping in dev->tx_timeout? Abraham van der Merwe
2003-08-03 19:10 ` Zwane Mwaikambo
2003-08-03 19:37 ` Abraham van der Merwe [this message]
2003-08-03 19:48 ` Jeff Garzik
2003-08-03 20:54 ` 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=20030803193708.GA13992@oasis.frogfoot.net \
--to=abz@frogfoot.net \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@arm.linux.org.uk \
/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