From: V Ganesh <ganesh@veritas.com>
To: linux-kernel@vger.kernel.org
Cc: linux-LVM@EZ-Darmstadt.Telekom.de, mingo@redhat.com
Subject: [bug] infinite loop in generic_make_request()
Date: Thu, 30 Nov 2000 12:32:01 +0530 (IST) [thread overview]
Message-ID: <200011300702.MAA26287@vxindia.veritas.com> (raw)
[cc'ed to maintainers of md and lvm]
hi,
in generic_make_request(), the following code handles stacking:
do {
q = blk_get_queue(bh->b_rdev);
if (!q) {
printk(...)
buffer_IO_error(bh);
break;
}
} while (q->make_request_fn(q, rw, bh));
however, make_request_fn may return -1 in case of errors. one such fn is
raid0_make_request(). this causes generic_make_request() to loop endlessly.
lvm returns 1 unconditionally, so it would also loop if an error occured in
lvm_map(). other bdevs might have the same problem.
I think a better mechanism would be to mandate that make_request_fn ought
to call bh->b_end_io() in case of errors and return 0.
ganesh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-11-30 7:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-30 7:02 V Ganesh [this message]
2000-11-30 9:24 ` [PATCH] Re: [bug] infinite loop in generic_make_request() Neil Brown
2000-11-30 20:05 ` [linux-lvm] " Andreas Dilger
2000-11-30 20:05 ` Andreas Dilger
2000-11-30 20:41 ` [linux-lvm] " Andrea Arcangeli
2000-11-30 20:41 ` Andrea Arcangeli
2000-11-30 21:54 ` [linux-lvm] " Andreas Dilger
2000-11-30 21:54 ` Andreas Dilger
2000-11-30 22:17 ` [linux-lvm] " Andrea Arcangeli
2000-11-30 22:17 ` Andrea Arcangeli
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=200011300702.MAA26287@vxindia.veritas.com \
--to=ganesh@veritas.com \
--cc=linux-LVM@EZ-Darmstadt.Telekom.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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.