linux-brain/drivers/target
Varun Prakash 1bfb3a070b scsi: target: cxgbit: Unmap DMA buffer before calling target_execute_cmd()
commit 6ecdafaec79d4b3388a5b017245f23a0ff9d852d upstream.

Instead of calling dma_unmap_sg() after completing WRITE I/O, call
dma_unmap_sg() before calling target_execute_cmd() to sync the DMA buffer.

Link: https://lore.kernel.org/r/1618403949-3443-1-git-send-email-varun@chelsio.com
Cc: <stable@vger.kernel.org> # 5.4+
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:53:48 +02:00
..
iscsi scsi: target: cxgbit: Unmap DMA buffer before calling target_execute_cmd() 2021-07-14 16:53:48 +02:00
loopback scsi: target: loopback: Fix READ with data and sensebytes 2020-06-24 17:50:25 +02:00
sbp
tcm_fc mm: introduce page_size() 2019-09-24 15:54:08 -07:00
Kconfig
Makefile
target_core_alua.c
target_core_alua.h
target_core_configfs.c
target_core_device.c scsi: target: core: Do not overwrite CDB byte 1 2019-10-17 21:40:25 -04:00
target_core_fabric_configfs.c
target_core_fabric_lib.c scsi: target: fix PR IN / READ FULL STATUS for FC 2020-05-02 08:48:56 +02:00
target_core_file.c
target_core_file.h
target_core_hba.c
target_core_iblock.c scsi: target/iblock: fix WRITE SAME zeroing 2020-05-06 08:15:14 +02:00
target_core_iblock.h
target_core_internal.h scsi: target: Fix xcopy sess release leak 2020-09-03 11:26:44 +02:00
target_core_pr.c scsi: target: core: Prevent underflow for service actions 2021-03-17 17:03:45 +01:00
target_core_pr.h
target_core_pscsi.c scsi: target: pscsi: Fix warning in pscsi_complete_cmd() 2021-05-11 14:04:08 +02:00
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_sbc.c
target_core_spc.c
target_core_stat.c
target_core_tmr.c
target_core_tpg.c
target_core_transport.c scsi: target: core: Fix warning on realtime kernels 2021-06-18 09:58:59 +02:00
target_core_ua.c
target_core_ua.h
target_core_user.c scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found 2021-05-22 11:38:29 +02:00
target_core_xcopy.c scsi: target: Fix XCOPY NAA identifier lookup 2021-01-12 20:16:25 +01:00
target_core_xcopy.h scsi: target: Fix XCOPY NAA identifier lookup 2021-01-12 20:16:25 +01:00