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 <hch@lst.de> Signed-off-by:
Nicholas Bellinger <nab@linux-iscsi.org>
Showing
- drivers/target/target_core_iblock.c 2 additions, 2 deletionsdrivers/target/target_core_iblock.c
- drivers/target/target_core_pscsi.c 9 additions, 5 deletionsdrivers/target/target_core_pscsi.c
- drivers/target/target_core_transport.c 25 additions, 20 deletionsdrivers/target/target_core_transport.c
- include/target/target_core_transport.h 6 additions, 2 deletionsinclude/target/target_core_transport.h
Loading
Please register or sign in to comment