- bio->bi_status = BLK_STS_IOERR;
+ if (atomic_read(&bbio->error) > bbio->max_errors)
+ bio->bi_status = BLK_STS_IOERR;
+ else
+ bio->bi_status = 0;
Thanks for the fix, I'd prefer BLK_STS_OK rather than 0.
With that,
Reviewed-by: Liu Bo <bo.li.liu@xxxxxxxxxx>
Thanks for the review will fix it.
-Anand
-liubo
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html