block: remove the blk_execute_rq return value
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Apr 2017 14:02:55 +0000 (16:02 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 18:16:10 +0000 (12:16 -0600)
commitb7819b9259185dcdcc81eb32182a4dc13d695738
tree96d76ffadf2718b65faf6004b734ed6b094f30ae
parent75a500ef6ecb6266d4d1347fc7eb4b298b566b3b
block: remove the blk_execute_rq return value

The function only returns -EIO if rq->errors is non-zero, which is not
very useful and lets a large number of callers ignore the return value.

Just let the callers figure out their error themselves.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
16 files changed:
block/blk-exec.c
block/scsi_ioctl.c
drivers/block/virtio_blk.c
drivers/cdrom/cdrom.c
drivers/ide/ide-atapi.c
drivers/ide/ide-cd.c
drivers/ide/ide-cd_ioctl.c
drivers/ide/ide-devsets.c
drivers/ide/ide-disk.c
drivers/ide/ide-ioctls.c
drivers/ide/ide-park.c
drivers/ide/ide-pm.c
drivers/ide/ide-taskfile.c
drivers/scsi/osd/osd_initiator.c
fs/nfsd/blocklayout.c
include/linux/blkdev.h