"Fossies" - the Fresh Open Source Software Archive
Member "aoe-87/conf/44.txt" (23 Feb 2017, 1160 Bytes) of package /linux/misc/aoe-87.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard
) with prefixed line numbers.
Alternatively you can here view
the uninterpreted source code file.
1 The commit below appears in v4.3-rc1.
3 commit 4246a0b63bd8f56a1469b12eafeb875b1041a451
4 Author: Christoph Hellwig <email@example.com>
5 Date: Mon Jul 20 15:29:37 2015 +0200
7 block: add a bi_error field to struct bio
9 Currently we have two different ways to signal an I/O error on a BIO:
11 (1) by clearing the BIO_UPTODATE flag
12 (2) by returning a Linux errno value to the bi_end_io callback
14 The first one has the drawback of only communicating a single possible
15 error (-EIO), and the second one has the drawback of not beeing persistent
16 when bios are queued up, and are not passed along from child to parent
17 bio in the ever more popular chaining scenario. Having both mechanisms
18 available has the additional drawback of utterly confusing driver authors
19 and introducing bugs where various I/O submitters only deal with one of
20 them, and the others have to add boilerplate code to deal with both kinds
21 of error returns.
23 So add a new bi_error field to store an errno value directly in struct
24 bio and remove the existing mechanisms to clean all this up.