[PATCH 1/2] svcrdma: Change DMA mapping logic to avoid the page_address kernel API

2010-10-12 Thread Tom Tucker
There was logic in the send path that assumed that a page containing data to send to the client has a KVA. This is not always the case and can result in data corruption when page_address returns zero and we end up DMA mapping zero. This patch changes the bus mapping logic to avoid page_address() w

Re: [PATCH 1/2] svcrdma: Change DMA mapping logic to avoid the page_address kernel API

2010-11-16 Thread Or Gerlitz
Tom Tucker wrote: > This patch changes the bus mapping logic to avoid page_address() where > necessary Hi Tom, Does "when necessary" comes to say that invocations of page_address which remained in the code after this patch was applied are safe and no kmap call is needed? Or. -- To unsubscrib

Re: [PATCH 1/2] svcrdma: Change DMA mapping logic to avoid the page_address kernel API

2010-11-17 Thread Tom Tucker
On 11/16/10 1:39 PM, Or Gerlitz wrote: Tom Tucker wrote: This patch changes the bus mapping logic to avoid page_address() where necessary Hi Tom, Does "when necessary" comes to say that invocations of page_address which remained in the code after this patch was applied are safe and no kmap