scsi: target: Initialize LUN in transport_init_se_cmd()
authorSudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
Sun, 7 Jun 2020 19:58:31 +0000 (19:58 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 10 Jun 2020 01:57:26 +0000 (21:57 -0400)
commita36840d8002736060f96386cf5dd148f0b0d4fa3
tree00af55425ba90f0b11ca8c52b74e302ec5d9eeea
parentf98c2ddf8ba34d8c44bf81f2e7542166d90ce5d9
scsi: target: Initialize LUN in transport_init_se_cmd()

Initialization of orig_fe_lun is moved to transport_init_se_cmd() from
transport_lookup_cmd_lun(). This helps for the cases where the SCSI request
fails before the call to transport_lookup_cmd_lun() so that
trace_target_cmd_complete() can print the LUN information to the trace
buffer. Due to this change, the lun parameter is removed from
transport_lookup_cmd_lun() and transport_lookup_tmr_lun().

Link: https://lore.kernel.org/r/1591559913-8388-3-git-send-email-sudhakar.panneerselvam@oracle.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/iscsi/iscsi_target.c
drivers/target/target_core_device.c
drivers/target/target_core_tmr.c
drivers/target/target_core_transport.c
drivers/target/target_core_xcopy.c
drivers/usb/gadget/function/f_tcm.c
include/target/target_core_fabric.h