Re: [patch -mm][Intel-IOMMU] Optimize sg map/unmap calls

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Keshavamurthy, Anil S <anil.s.keshavamurthy@...>, Linux Kernel <linux-kernel@...>, Greg KH <greg@...>, Andi K <ak@...>, arjan <arjan@...>, Ashok Raj <ashok.raj@...>, Suresh B <suresh.b.siddha@...>
Date: Thursday, August 2, 2007 - 1:25 pm

On Wed, Aug 01, 2007 at 04:45:54PM -0700, Andrew Morton wrote:
Andrew,
	The call chain to iova_get_pad_size() is like this
alloc_iova()--->__alloc_iova_range()--->iova_get_pad_size().

Inside the alloc_iova() we are rounding the size to __roundup_pow_of_two(size)
iff the caller of alloc_iova() request by setting size_aligned bool. And
in every call to iova_get_pad_size() we check the size_aligned bool before calling
iova_get_pad_size.  Hence I don;t see any issues. If you want I can insert a 
BUG_ON() statement inside the above iova_get_pad_size() function. 
Please do let me know.

thanks,
Anil
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch -mm][Intel-IOMMU] Optimize sg map/unmap calls, Keshavamurthy, Anil S, (Wed Aug 1, 4:06 pm)
Re: [patch -mm][Intel-IOMMU] Optimize sg map/unmap calls, Keshavamurthy, Anil S, (Thu Aug 2, 1:25 pm)