From: Arne Jansen <lists@die-jansens.de>
To: linux-scsi@vger.kernel.org
Cc: axboe@kernel.dk
Subject: reusing bios
Date: Sat, 12 Mar 2011 10:29:20 +0100 [thread overview]
Message-ID: <4D7B3CF0.5040102@die-jansens.de> (raw)
Hi,
I'm trying to re-use struct bio after completion, including the
allocated pages. Normally I re-initialize the fields bi_sector,
bi_size, bi_next, bi_flags, bi_comp_cpu and bi_bdev.
This works perfectly well, as long as no media errors are encountered.
After a media error, all subsequent reads with this bio fail. Are
there any more fields that need to get re-initialized? Or, better,
is there a function to reset the bio?
Thanks,
Arne
next reply other threads:[~2011-03-12 9:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-12 9:29 Arne Jansen [this message]
2011-03-12 10:08 ` reusing bios Jens Axboe
2011-03-12 13:33 ` Arne Jansen
2011-03-12 13:48 ` Jens Axboe
2011-03-12 13:58 ` Arne Jansen
2011-03-14 22:10 ` Dan Williams
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=4D7B3CF0.5040102@die-jansens.de \
--to=lists@die-jansens.de \
--cc=axboe@kernel.dk \
--cc=linux-scsi@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