From: Andy Tai <lichengtai@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: atai@atai.org
Subject: "layered" block devices and deadlock problems
Date: Thu, 7 Mar 2002 01:13:11 -0800 (PST) [thread overview]
Message-ID: <20020307091311.16356.qmail@web10507.mail.yahoo.com> (raw)
Hi, I have been trying to write a kernel driver for a
"layered" block device, that is, a virtual device
which sits on top of actual physical devices and
redirects read/write requests to them. To avoid
problems in the interrupt context I save the requests
in a queue in the request function and have a kernel
thread pulling the requests out of the queue and then
in turn calling read() or write() functions of the
physical block device.
However, I keep running into deadlocks. Sometimes the
kernel thread will hang on waiting for free request
structures. Other times it will hang in
wait_for_buffer() in buffer.c. In both cases the
system won't respond to any new shell commands I typed
in. (But existing processes like xosview and top
continue to run) Since I am not familiar with the
internal workings of the buffer cache, can anyone give
me hints on how to avoid deadlocks in layered drivers?
Or pointers to useful documentation for this kind of
tasks are also appreciated.
Thanks.
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
next reply other threads:[~2002-03-07 9:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-07 9:13 Andy Tai [this message]
2002-03-07 9:53 ` Joe Thornber
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=20020307091311.16356.qmail@web10507.mail.yahoo.com \
--to=lichengtai@yahoo.com \
--cc=atai@atai.org \
--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
all inboxes | Powered by JetHome®