From: "Adam J. Richter" <adam@yggdrasil.com>
To: linux-kernel@vger.kernel.org
Subject: linux-2.5.2-pre11/drivers/loop.c bio question
Date: Sat, 12 Jan 2002 08:31:01 -0800 [thread overview]
Message-ID: <200201121631.IAA06475@baldur.yggdrasil.com> (raw)
Has anyone out there tried to use linux-2.5.2-pre11/drivers/loop.c?
In my hacked version of loop.c, do_bio_blockbacked is often
called with a bio that has bio->bi_idx set to 1 rather than 0
(and with bi->bi_vcnt == 1), so it thinks it has no transfers to do.
When I add the kludge of doing "bio->bi_idx = 0;" at the beginning
of the routine, then it works fine.
It is possible that my problem is self-inflicted because I
am using a version that I have adopted the "initial value" patch to,
and I also added a temporary hack to force the requests to be processed
one sector at a time, like so:
blk_queue_max_segment_size(BLK_DEFAULT_QUEUE(MAJOR_NR), 512);
However, I think my changes are probably not the cause. Anyhow,
I thought I should mention this now to see if anyone else can
confirm or refute having similar problems.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
next reply other threads:[~2002-01-12 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-12 16:31 Adam J. Richter [this message]
2002-01-14 7:05 ` 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=200201121631.IAA06475@baldur.yggdrasil.com \
--to=adam@yggdrasil.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
all inboxes | Powered by JetHome®