On 2011-03-12 10:29, Arne Jansen wrote: > 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? bio_init()? Sounds like you are not setting BIO_UPTODATE when resetting it. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html