[SCSI] ide-scsi: remove usage of sg_last()

We want to remove sg_last(), it's a very expensive interface. So
keep track of number of sg entries in the sg list, instead of comparing
with the last entry.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Jens Axboe 2007-10-17 13:16:35 +02:00
commit c79d88b7fa