From: Kiyoshi Ueda Date: Tue, 11 Dec 2007 22:49:29 +0000 (-0500) Subject: blk_end_request: changing ide-scsi (take 4) X-Git-Tag: v2.6.25-rc1~1172^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a330e39b13fe8d368d015338a4267129f502a55;p=platform%2Fkernel%2Flinux-3.10.git blk_end_request: changing ide-scsi (take 4) This patch converts ide-scsi to use blk_end_request interfaces. Related 'uptodate' arguments are converted to 'error'. Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Kiyoshi Ueda Signed-off-by: Jun'ichi Nomura Signed-off-by: Jens Axboe --- diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 02e9189..db8bc20 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c @@ -919,8 +919,8 @@ static int idescsi_eh_reset (struct scsi_cmnd *cmd) } /* kill current request */ - blkdev_dequeue_request(req); - end_that_request_last(req, 0); + if (__blk_end_request(req, -EIO, 0)) + BUG(); if (blk_sense_request(req)) kfree(scsi->pc->buffer); kfree(scsi->pc); @@ -929,8 +929,8 @@ static int idescsi_eh_reset (struct scsi_cmnd *cmd) /* now nuke the drive queue */ while ((req = elv_next_request(drive->queue))) { - blkdev_dequeue_request(req); - end_that_request_last(req, 0); + if (__blk_end_request(req, -EIO, 0)) + BUG(); } HWGROUP(drive)->rq = NULL;