mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
ide: use rq->nr_sectors in task_end_request()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
03c3c70ee5
commit
79f21b84d9
@ -424,9 +424,9 @@ static void task_end_request(ide_drive_t *drive, struct request *rq, u8 stat)
|
||||
ide_driver_t *drv;
|
||||
|
||||
drv = *(ide_driver_t **)rq->rq_disk->private_data;;
|
||||
drv->end_request(drive, 1, rq->hard_nr_sectors);
|
||||
drv->end_request(drive, 1, rq->nr_sectors);
|
||||
} else
|
||||
ide_end_request(drive, 1, rq->hard_nr_sectors);
|
||||
ide_end_request(drive, 1, rq->nr_sectors);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user