From: Mike Christie Date: Sat, 24 Apr 2010 21:21:19 +0000 (-0500) Subject: [SCSI] libiscsi: regression: fix header digest errors X-Git-Tag: v2.6.34-rc7~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96b1f96dcab87756c0a1e7ba76bc5dc2add82b88;p=pandora-kernel.git [SCSI] libiscsi: regression: fix header digest errors This fixes a regression introduced with this commit: commit d3305f3407fa3e9452079ec6cc8379067456e4aa Author: Mike Christie Date: Thu Aug 20 15:10:58 2009 -0500 [SCSI] libiscsi: don't increment cmdsn if cmd is not sent in 2.6.32. When I moved the hdr->cmdsn after init_task, I added a bug when header digests are used. The problem is that the LLD may calculate the header digest in init_task, so if we then set the cmdsn after the init_task call we change what the digest will be calculated by the target. Signed-off-by: Mike Christie Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed