diff options
author | Mike Christie <michael.christie@oracle.com> | 2021-02-27 17:59:42 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-04 23:37:00 +0100 |
commit | a9294d86743298c87fd9c39d9ddebf4b04d5da10 (patch) | |
tree | 65bf13fb7e78c7a104c634f51f5629dc0b1e7e54 /include/target | |
parent | scsi: core: Replace sdev->device_busy with sbitmap (diff) | |
download | linux-a9294d86743298c87fd9c39d9ddebf4b04d5da10.tar.xz linux-a9294d86743298c87fd9c39d9ddebf4b04d5da10.zip |
scsi: target: core: Move t_task_cdb initialization
Prepare to split target_submit_cmd_map_sgls() so the initialization and
submission part can be called at different times. If the init part fails we
can reference the t_task_cdb early in some of the logging and tracing
code. Move it to transport_init_se_cmd() so we don't hit NULL pointer
crashes.
Link: https://lore.kernel.org/r/20210227170006.5077-2-michael.christie@oracle.com
Tested-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions