From: Erez Zilber Date: Mon, 11 Sep 2006 09:19:17 +0000 (+0300) Subject: IB/iser: fix a check of SG alignment for RDMA X-Git-Tag: v2.6.19-rc1~1293^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777a71dd4d901f055967ddbd038d2a74ffce0eb8;p=pandora-kernel.git IB/iser: fix a check of SG alignment for RDMA dma mapping may include a "compaction" of the sg associated with scsi command. Hence, the size of the maximal prefix of the SG which is aligned for rdma must be compared against the length of the dma mapped sg (mem->dma_nents) and not against the size of it before it was mapped (mem->size). Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier --- Reading git-diff-tree failed