Skip to content
Commit 3be6cbd7 authored by Jeff Garzik's avatar Jeff Garzik
Browse files

[libata] kill ata_sg_is_last()



Short term, this works around a bug introduced by early sg-chaining
work.

Long term, removing this function eliminates a branch from a hot
path loop in each scatter/gather table build.  Also, as this code
demonstrates, we don't need to _track_ the end of the s/g list, as
long as we mark it in some way.  And doing so programatically is nice.
So its a useful cleanup, regardless of its short term effects.

Based conceptually on a quick patch by Jens Axboe.

Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 858c9c40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment