public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* reusing bios
@ 2011-03-12  9:29 Arne Jansen
  2011-03-12 10:08 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Arne Jansen @ 2011-03-12  9:29 UTC (permalink / raw)
  To: linux-scsi; +Cc: axboe

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-14 22:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-12  9:29 reusing bios Arne Jansen
2011-03-12 10:08 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox