From mboxrd@z Thu Jan 1 00:00:00 1970 From: Venkat Venkatsubra Subject: [PATCH] RDSRDMA: Fix to PAGE_MASK interpretation Date: Fri, 9 Sep 2011 07:35:42 -0700 (PDT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Cc: Davem To: Netdev , Rds-Devel Return-path: Received: from rcsinet15.oracle.com ([148.87.113.117]:34602 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425Ab1IIOfw convert rfc822-to-8bit (ORCPT ); Fri, 9 Sep 2011 10:35:52 -0400 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: 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 Signed-off-by: Venkat Venkatsubra Venkat