Re: [dm-devel] [PATCH] block: add a bi_error field to struct bio

2015-07-21 Thread Hannes Reinecke
On 07/20/2015 03:29 PM, Christoph Hellwig wrote: > Currently we have two different ways to signal an I/O error on a BIO: > > (1) by clearing the BIO_UPTODATE flag > (2) by returning a Linux errno value to the bi_end_io callback > > The first one has the drawback of only communicating a single

Re: [dm-devel] [PATCH] block: add a bi_error field to struct bio

2015-07-21 Thread Hannes Reinecke
On 07/20/2015 03:29 PM, Christoph Hellwig wrote: Currently we have two different ways to signal an I/O error on a BIO: (1) by clearing the BIO_UPTODATE flag (2) by returning a Linux errno value to the bi_end_io callback The first one has the drawback of only communicating a single