From: Werner Almesberger <werner@almesberger.net>
To: jdike@addtoit.com
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] patch: use elv_queue_empty
Date: Sun, 8 Feb 2004 18:11:09 -0300 [thread overview]
Message-ID: <20040208181109.G1325@almesberger.net> (raw)
This patch makes UBD a little more compatible with alternative
elevators that may not use a single request queue.
It's for 2.6.1 with uml-patch-2.6.1-1.
- Werner
--- linux-2.6.1/arch/um/drivers/ubd_kern.c.orig Sun Feb 8 17:16:51 2004
+++ linux-2.6.1/arch/um/drivers/ubd_kern.c Sun Feb 8 17:17:32 2004
@@ -1034,7 +1034,7 @@
int err, n;
if(thread_fd == -1){
- while(!list_empty(&q->queue_head)){
+ while(!elv_queue_empty(q)){
req = elv_next_request(q);
err = prepare_request(req, &io_req);
if(!err){
@@ -1044,7 +1044,7 @@
}
}
else {
- if(do_ubd || list_empty(&q->queue_head)) return;
+ if(do_ubd || elv_queue_empty(q)) return;
req = elv_next_request(q);
err = prepare_request(req, &io_req);
if(!err){
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina werner@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2004-02-08 21:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-08 21:11 Werner Almesberger [this message]
2004-02-12 15:55 ` [uml-devel] Re: patch: use elv_queue_empty Jeff Dike
2004-02-22 18:33 ` [uml-devel] " BlaisorBlade
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=20040208181109.G1325@almesberger.net \
--to=werner@almesberger.net \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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