diff options
author | Dmitry Bogdanov <d.bogdanov@yadro.com> | 2022-07-28 00:41:25 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-08-01 19:36:02 -0400 |
commit | ef4f7e4bf1dc26aaa86cf8e5a13013684139be51 (patch) | |
tree | 432760c8e0d00e319a04fefc9f386e3aa3d1e2da /include | |
parent | dd0a66ada0bd0ae6c96ea45cfa1581797e867a40 (diff) | |
download | linux-rpi-ef4f7e4bf1dc26aaa86cf8e5a13013684139be51.tar.gz linux-rpi-ef4f7e4bf1dc26aaa86cf8e5a13013684139be51.tar.bz2 linux-rpi-ef4f7e4bf1dc26aaa86cf8e5a13013684139be51.zip |
scsi: target: core: De-RCU of se_lun and se_lun acl
se_lun and se_lun_acl are immutable pointers of struct se_dev_entry.
Remove RCU usage for access to those pointers.
Link: https://lore.kernel.org/r/20220727214125.19647-3-d.bogdanov@yadro.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/target/target_core_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index c2b36f7d917d..8c920456edd9 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -665,9 +665,9 @@ struct se_dev_entry { /* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */ struct kref pr_kref; struct completion pr_comp; - struct se_lun_acl __rcu *se_lun_acl; + struct se_lun_acl *se_lun_acl; spinlock_t ua_lock; - struct se_lun __rcu *se_lun; + struct se_lun *se_lun; #define DEF_PR_REG_ACTIVE 1 unsigned long deve_flags; struct list_head alua_port_list; |