ide: sanitize ide_end_rq()
* Move 'uptodate' quirk from ide_end_rq() to its users. * Move quirks for blk_noretry_request() and !blk_fs_request() requests from ide_end_rq() to ide_end_request(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -272,7 +272,7 @@ static void cdrom_end_request(ide_drive_t *drive, int uptodate)
|
||||
* now end the failed request
|
||||
*/
|
||||
if (blk_fs_request(failed)) {
|
||||
if (ide_end_rq(drive, failed, 0,
|
||||
if (ide_end_rq(drive, failed, -EIO,
|
||||
failed->hard_nr_sectors << 9))
|
||||
BUG();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user