From: Nicholas Bellinger Date: Sun, 25 Aug 2013 23:10:57 +0000 (-0700) Subject: target: Do memory allocation for bidi commands using target_alloc_sgl X-Git-Tag: v3.12-rc1~23^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cefe07b5e9c2b0212ad6809a219e4489807a746;p=pandora-kernel.git target: Do memory allocation for bidi commands using target_alloc_sgl This patch updates transport_generic_new_cmd() to call target_alloc_sgl() for SGL + page memory allocation for se_cmd->t_bidi_data_sg. It also adds the special case for SCF_COMPARE_AND_WRITE to calculate a different bidi_length based upon se_cmd->t_task_nolb. Reported-by: Christoph Hellwig Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: James Bottomley Cc: Nicholas Bellinger Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed