scsi: nvme-fc: Add new routine nvme_fc_io_getuuid()
authorMuneendra Kumar <muneendra.kumar@broadcom.com>
Thu, 19 May 2022 12:31:07 +0000 (05:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 May 2022 00:24:56 +0000 (20:24 -0400)
commit827fc630e4c8087df5a8e8ee013b686bd6f13736
treef3215984645fec7361d8befb8aabbe4e6fe05ac4
parent325d5c5fb216674296f3902a8902b942da3adc5b
scsi: nvme-fc: Add new routine nvme_fc_io_getuuid()

Add nvme_fc_io_getuuid() to the nvme-fc transport. The routine is invoked
by the FC LLDD on a per-I/O request basis.  The routine translates from the
FC-specific request structure to the bio and the cgroup structure in order
to obtain the FC appid stored in the cgroup structure. If a value is not
set or a bio is not found, a NULL appid (aka uuid) will be returned to the
LLDD.

Link: https://lore.kernel.org/r/20220519123110.17361-2-jsmart2021@gmail.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Muneendra Kumar <muneendra.kumar@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/fc.c
include/linux/nvme-fc-driver.h