linux/drivers/infiniband/ulp/srpt
Leon Romanovsky ef63cc4417 RDMA/srpt: Pass the mapped task attribute to target_init_cmd()
srpt_handle_cmd() maps the initiator-supplied srp_cmd->task_attr into
cmd->sam_task_attr, but then hands a hardcoded TCM_SIMPLE_TAG to
target_init_cmd().

Pass the already mapped cmd->sam_task_attr instead, so target core sees the
attribute the initiator requested.

Fixes: 9474b04313 ("ib_srpt: Convert I/O path to target_submit_cmd + drop legacy ioctx->kref")
Link: https://patch.msgid.link/20260721-b4-scsi-ordering-violation-due-to-hardc-v1-1-07205aab71bb@nvidia.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
2026-07-22 02:15:16 -04:00
..
ib_dm_mad.h
ib_srpt.c RDMA/srpt: Pass the mapped task attribute to target_init_cmd() 2026-07-22 02:15:16 -04:00
ib_srpt.h RDMA/srpt: Fix a use-after-free 2022-07-29 16:45:37 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00