1
0
Fork 0
alistair23-linux/drivers/s390
Christoph Hellwig 4246a0b63b block: add a bi_error field to struct bio
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 possible
error (-EIO), and the second one has the drawback of not beeing persistent
when bios are queued up, and are not passed along from child to parent
bio in the ever more popular chaining scenario.  Having both mechanisms
available has the additional drawback of utterly confusing driver authors
and introducing bugs where various I/O submitters only deal with one of
them, and the others have to add boilerplate code to deal with both kinds
of error returns.

So add a new bi_error field to store an errno value directly in struct
bio and remove the existing mechanisms to clean all this up.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-07-29 08:55:15 -06:00
..
block block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
char s390/sclp: fix compile error 2015-07-01 09:34:38 +02:00
cio s390: remove use of seq_printf return value 2015-04-15 16:35:25 -07:00
crypto s390/zcrypt: enable s390 hwrng to seed kernel entropy 2015-07-01 09:34:37 +02:00
kvm KVM: s390: virtio-ccw: don't overwrite config space values 2015-07-03 18:55:18 +02:00
net s390/lcs: Fix null-pointer access in msg 2015-05-18 12:14:18 -04:00
scsi scsi: Do not set cmd_per_lun to 1 in the host template 2015-05-31 18:06:28 -07:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00