The extra_len you added to qc->nbytes should be it. The only other
place to pay attention is the ATAPI transfer chunk size and your patch
seems to get it right.
With the second patch, all others should be fine no matter what. I'll
go check libata part again.
Thanks.
--
tejun
--