linux/fs/gfs2
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
..
acl.c
acl.h
aops.c GFS2: merge window 2015-06-27 09:47:46 -07:00
bmap.c
bmap.h
dentry.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
dir.c
dir.h
export.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
file.c GFS2: merge window 2015-06-27 09:47:46 -07:00
gfs2.h
glock.c GFS2: Don't add all glocks to the lru 2015-06-18 12:17:59 -05:00
glock.h
glops.c GFS2: Don't brelse rgrp buffer_heads every allocation 2015-06-19 07:40:22 -05:00
glops.h
incore.h GFS2: Don't add all glocks to the lru 2015-06-18 12:17:59 -05:00
inode.c GFS2: merge window 2015-06-27 09:47:46 -07:00
inode.h
Kconfig
lock_dlm.c
log.c
log.h
lops.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
quota.c GFS2: merge window 2015-06-27 09:47:46 -07:00
quota.h
recovery.c
recovery.h
rgrp.c GFS2: Don't brelse rgrp buffer_heads every allocation 2015-06-19 07:40:22 -05:00
rgrp.h GFS2: Don't brelse rgrp buffer_heads every allocation 2015-06-19 07:40:22 -05:00
super.c writeback: move bandwidth related fields from backing_dev_info into bdi_writeback 2015-06-02 08:33:34 -06:00
super.h
sys.c gfs2: convert simple_str to kstr 2015-05-05 13:23:22 -05:00
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-04-26 17:22:07 -07:00
xattr.h