From: Ming Zhang <mingz@ele.uri.edu>
To: LKML <linux-kernel@vger.kernel.org>
Subject: can generic_make_request in 2.4 kernel sleep?
Date: Sat, 28 Feb 2004 11:06:42 -0500 [thread overview]
Message-ID: <1077984402.4422.36.camel@localhost.localdomain> (raw)
Hi, I have a quick question.
In 2.4 kernel, can generic_make_request sleep?
I read the 2.4.24 kernel and find that there is printk in it. so i
assume it can sleep. if so, why the per queue make_request_fn can not
sleep base on the LDD book? and i do not see any place that the
io_request_lock is held. is this lock removed from system? or we do not
need this lock at this place any more?
and in md code, it use blk_queue_make_request to use its own request_fn
instead a queue, for example, in raid1_make_request(), it calls
raid1_alloc_r1ch() which also call schedule() if need, then this own
request_fn can sleep?
i think i am little confused about the LDD (linux device driver 2nd)
book and the new kernel code. can anybody point out some latest
reference for me?
thanks a bunch.
ming
next reply other threads:[~2004-02-28 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 16:06 Ming Zhang [this message]
2004-02-29 9:49 ` can generic_make_request in 2.4 kernel sleep? Jens Axboe
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=1077984402.4422.36.camel@localhost.localdomain \
--to=mingz@ele.uri.edu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.