[rds-devel] [PATCH] RDSRDMA: Fix to PAGE_MASK interpretation

Venkat Venkatsubra venkat.x.venkatsubra at oracle.com
Fri Sep 9 07:35:42 PDT 2011


On 08/29/2011 02:28 PM, Jonathan Lallinger wrote:
> The RDS_RDMA rds_iw_map_scatterlist function assumed PAGE_MASK was the bitwise
> compliment of what it actually is. This problem was introduced in commit
> 404bb72a56e553febe1055f98347a7a3e3145759 when the variable dma_mask was replaced
> by PAGE_MASK, however dma_mask represented the compliment of what PAGE_MASK
> represents.
>
> This fix corrects the logic by flipping the compliments on all uses of PAGE_MASK
> int rds_iw_map_scatterlist.
>
> Signed-off by: Jonathan Lallinger<jonathan at ogc.us>

Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra at oracle.com>

Venkat



More information about the rds-devel mailing list