From: Nicholas Bellinger Date: Thu, 21 Jul 2011 04:41:48 +0000 (+0000) Subject: target: ->map_task_SG conversion to ->map_control_SG and ->map_data_SG X-Git-Tag: v3.1-rc1~305^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d20bb6147954d4fbd337a3d1b40c7eeae254cd7;p=pandora-kernel.git target: ->map_task_SG conversion to ->map_control_SG and ->map_data_SG This patch breaks up the ->map_task_SG() backend call into two seperate ->map_control_SG() and ->map_data_SG() in order to better address IBLOCK and pSCSI. IBLOCK only allocates bios for ->map_data_SG(), and pSCSI will allocate a struct request for both cases. This patch fixes incorrect usage of ->map_task_SG() for all se_cmd descriptors in transport_generic_new_cmd() by moving the call into it's proper location directly inside of transport_allocate_data_tasks() Reported-by: Christoph Hellwig Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed