[dm-devel] [RFC] add a bi_error field
Liu Bo
bo.li.liu at oracle.com
Thu Jun 11 08:05:30 UTC 2015
On Thu, Jun 11, 2015 at 03:59:22PM +0800, Liu Bo wrote:
> On Wed, Jun 03, 2015 at 03:42:38PM +0200, Christoph Hellwig wrote:
> > Bio error reporting has been a mess for a while, and the increasing
> > use of chained bios makes it worse.
> >
> > This series attempts to add a proper error field to struct bio
> > to sort this out. It's working fine for me, but MD and btrfs were
> > doing pretty nasty things with the BIO_UPTODATE flag, so I would
> > appreciate some detailed review there.
>
> Somehow the patch is missing from my mailbox, but this cover letter
> remains, I have to review it from online archive.
>
> Anyway, I went through btrfs part and it looks good.
>
> Reviewed-by: Liu Bo <bo.li.liu at oracle.com> (btrfs part)
Also there're some conflicts in btrfs_end_empty_barrier():
...
static void btrfs_end_empty_barrier(struct bio *bio, int err)
{
if (err) {
if (err == -EOPNOTSUPP)
set_bit(BIO_EOPNOTSUPP, &bio->bi_flags);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
clear_bit(BIO_UPTODATE, &bio->bi_flags);
}
if (bio->bi_private)
complete(bio->bi_private);
bio_put(bio);
}
Thanks,
-liubo
More information about the dm-devel
mailing list