scsi: target: core: Use RCU helpers for INQUIRY t10_alua_tg_pt_gp
authorMike Christie <michael.christie@oracle.com>
Wed, 17 Nov 2021 21:39:28 +0000 (15:39 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Nov 2021 04:06:55 +0000 (23:06 -0500)
commite2a49a95b571d9d208f28a03d63353374e724f13
tree17476d5d0bf99e508754ed62a1bdf4cc58068676
parent5ecae9f8c705fae85fe4d2ed9f1b9cddf91e88e9
scsi: target: core: Use RCU helpers for INQUIRY t10_alua_tg_pt_gp

Fix the sparse warnings about t10_alua_tg_pt_gp accesses in
target_core_spc.c caused by commit 7324f47d4293 ("scsi: target: Replace
lun_tg_pt_gp_lock with rcu in I/O path")

That commit replaced the lun_tg_pt_gp_lock use in the I/O path, but it
didn't update the INQUIRY code.

Link: https://lore.kernel.org/r/20211117213928.8634-1-michael.christie@oracle.com
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_spc.c