1
0
Fork 0
alistair23-linux/kernel/power
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
..
Kconfig PM / sleep: Increase default DPM watchdog timeout to 60 2015-06-25 00:35:16 +02:00
Makefile suspend: simplify block I/O handling 2015-05-19 09:19:59 -06:00
autosleep.c PM / Sleep: avoid 'autosleep' in shutdown progress 2013-07-15 01:31:37 +02:00
console.c arm, pm, vmpressure: add missing slab.h includes 2014-02-03 13:24:01 -05:00
hibernate.c PM / hibernate: re-enable nonboot cpus on disable_nonboot_cpus() failure 2015-06-24 23:48:44 +02:00
main.c PM / sleep: Fix symbol name in a comment in kernel/power/main.c 2015-05-13 15:31:12 +02:00
power.h suspend: simplify block I/O handling 2015-05-19 09:19:59 -06:00
poweroff.c power/sysrq: fix inconstistent help message of sysrq key 2013-04-30 17:04:10 -07:00
process.c oom, PM: make OOM detection in the freezer path raceless 2015-02-11 17:06:03 -08:00
qos.c PM / QoS: Add debugfs support to view the list of constraints 2015-01-23 22:16:21 +01:00
snapshot.c Revert "PM / hibernate: avoid unsafe pages in e820 reserved regions" 2015-04-07 01:13:23 +02:00
suspend.c PM / sleep: Return -EBUSY from suspend_enter() on wakeup detection 2015-05-19 02:26:56 +02:00
suspend_test.c PM / sleep: Enhance test_suspend option with repeat capability 2014-09-09 01:48:02 +02:00
swap.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
user.c PM / hibernate: introduce "nohibernate" boot parameter 2014-06-16 23:29:39 +02:00
wakelock.c PM / wakeup: Include appropriate header file in kernel/power/wakelock.c 2014-03-01 01:02:09 +01:00