From: Alexei Potashnik Date: Tue, 21 Jul 2015 00:12:12 +0000 (-0700) Subject: target/iscsi: Use proper SGL accessors for digest computation X-Git-Tag: omap-for-v4.3/fixes-rc1~24^2~21 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa75679c797c0250a853e600e45368f1f9545c27;p=pandora-kernel.git target/iscsi: Use proper SGL accessors for digest computation Current implementation assumes that all the buffers of an IO are linked with a single SG list, which is OK because target-core is only allocating a contigious scatterlist region. However, this assumption is wrong for se_cmd descriptors that want to use chaining across multiple SGL regions. Fix this up by using proper SGL accessors for digest payload computation. Signed-off-by: Alexei Potashnik Cc: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed