lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

  • Or Gerlitz's avatar
    IB/iser: Rewrite SG handling for RDMA logic · 7ecc5d44
    Or Gerlitz authored
    commit c1ccaf24 upstream.
    
    After dma-mapping an SG list provided by the SCSI midlayer, iser has
    to make sure the mapped SG is "aligned for RDMA" in the sense that its
    possible to produce one mapping in the HCA IOMMU which represents the
    whole SG. Next, the mapped SG is formatted for registration with the HCA.
    
    This patch re-writes the logic that does the above, to make it clearer
    and simpler. It also fixes a bug in the being aligned for RDMA checks,
    where a "start" check wasn't done but rather only "end" check.
    
    [commit message in RH kernel tree: "Under heavy load, without the patch,
    the HCA can be programmed to write (corrupt) into pages/location which
    doesn't belong to the SG associated with the actual I/O and cause a
    kernel oops."]
    Signed-off-by: default avatarAlexander Nezhinsky <alexandern@voltaire.com>
    Signed-off-by: default avatarOr Gerlitz <ogerlitz@voltaire.com>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    Cc: maximilian attems <max@stro.at>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    7ecc5d44
iser_memory.c 13.9 KB