]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/ide/ide-io.c
[BLOCK] add @uptodate to end_that_request_last() and @error to rq_end_io_fn()
authorTejun Heo <htejun@gmail.com>
Fri, 6 Jan 2006 08:49:03 +0000 (09:49 +0100)
committerJens Axboe <axboe@suse.de>
Fri, 6 Jan 2006 08:49:03 +0000 (09:49 +0100)
commit8ffdc6550c47f75ca4e6c9f30a2a89063e035cf2
treea478b9acef5c66242a964154f7ad3a0ea750ef0f
parent64100099ed22f71cce656c5c2caecf5c9cf255dc
[BLOCK] add @uptodate to end_that_request_last() and @error to rq_end_io_fn()

add @uptodate argument to end_that_request_last() and @error
to rq_end_io_fn().  there's no generic way to pass error code
to request completion function, making generic error handling
of non-fs request difficult (rq->errors is driver-specific and
each driver uses it differently).  this patch adds @uptodate
to end_that_request_last() and @error to rq_end_io_fn().

for fs requests, this doesn't really matter, so just using the
same uptodate argument used in the last call to
end_that_request_first() should suffice.  imho, this can also
help the generic command-carrying request jens is working on.

Signed-off-by: tejun heo <htejun@gmail.com>
Signed-Off-By: Jens Axboe <axboe@suse.de>
21 files changed:
block/elevator.c
block/ll_rw_blk.c
drivers/block/DAC960.c
drivers/block/cciss.c
drivers/block/cpqarray.c
drivers/block/floppy.c
drivers/block/nbd.c
drivers/block/sx8.c
drivers/block/ub.c
drivers/block/viodasd.c
drivers/cdrom/cdu31a.c
drivers/ide/ide-cd.c
drivers/ide/ide-io.c
drivers/message/i2o/i2o_block.c
drivers/mmc/mmc_block.c
drivers/s390/block/dasd.c
drivers/s390/char/tape_block.c
drivers/scsi/ide-scsi.c
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c
include/linux/blkdev.h