From: "" <simon@baydel.com>
To: linux-kernel@vger.kernel.org
Subject: scsi detect and kgdb
Date: Mon, 15 Jul 2002 09:11:34 +0100 [thread overview]
Message-ID: <3D3291C6.2253.2B2C10@localhost> (raw)
I have been writing a scsi module and as part of the module
initialisation I would like to delay while waiting for a specific
condition. I have tried to put the detect routine in a loop which
spins on jiffies + a timeout and my hardware condition. I had all
sorts of problems with this code and I found that module load
locked up. I tried using barrier and schedule in this loop and found
that schedule worked for me most of the time.
I thought I would have a look at the code with kgdb. Firstly I noticed
that schedule is not defined in the kgdb enabled kernel. Also even
if I put this detect routine in a spin for a while my interrupts do not
get serviced until after this spin and quite possibly not until the
detect routine returns.
I would like to know the correct way to facilitate a delay in a scsi
module detect routine, while waiting for a hardware condition which
gets satisfied by a number of interrupts. If this condition is not met
in a timeout period the code also continue.
I would also like to understand the kgdb kernel behaviour.
I am running a 2.4.16 kernel.
Cheers
Simon.
__________________________
Simon Haynes - Baydel
Phone : 44 (0) 1372 378811
Email : simon@baydel.com
__________________________
reply other threads:[~2002-07-15 9:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3D3291C6.2253.2B2C10@localhost \
--to=simon@baydel.com \
--cc=linux-kernel@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