1. 23 12月, 2015 26 次提交
  2. 12 12月, 2015 6 次提交
  3. 09 12月, 2015 6 次提交
  4. 08 12月, 2015 2 次提交
    • B
      IB core: Fix ib_sg_to_pages() · 8f5ba10e
      Bart Van Assche 提交于
      On 12/03/2015 01:18 AM, Christoph Hellwig wrote:
      > The patch looks good to me, but while we touch this area, how about
      > throwing in a few cosmetic fixes as well?
      
      How about the patch below ? In that version of the ib_sg_to_pages() fix
      these concerns have been addressed and additionally to more bugs have been fixed.
      
      ------------
      
      [PATCH] IB core: Fix ib_sg_to_pages()
      
      Fix the code for detecting gaps. A gap occurs not only if the
      second or later scatterlist element is not aligned but also if
      any scatterlist element other than the last does not end at a
      page boundary.
      
      In the code for coalescing contiguous elements, ensure that
      mr->length is correct and that last_page_addr is up-to-date.
      
      Ensure that this function returns a negative
      error code instead of zero if the first set_page() call fails.
      
      Fixes: commit 4c67e2bf ("IB/core: Introduce new fast registration API")
      Reported-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      8f5ba10e
    • B
      IB/srp: Fix srp_map_sg_fr() · 57b0be9c
      Bart Van Assche 提交于
      After dma_map_sg() has been called the return value of that function
      must be used as the number of elements in the scatterlist instead of
      scsi_sg_count().
      
      Fixes: commit f7f7aab1 ("IB/srp: Convert to new registration API")
      Reported-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
      Cc: stable <stable@vger.kernel.org> # v4.4+
      Cc: Sagi Grimberg <sagig@mellanox.com>
      Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      57b0be9c