+6
−6
Loading
For a SGL using PRPs, there is always an alignment check of the start address in the beginning of the loop. This is stored in start_valid. If the start is indeed valid, we might fetch a new SGE, and then perform a second alignment check on this new SGE. However, this second alignment check is done unconditionally, meaning that for the last SGE in a request, we check if the same start address is aligned twice. Only perform the second alignment check if we actually fetched a new SGE. Signed-off-by:Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I9df8038c650b0879f838d1d9d895e8dd7172840d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6493 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>