diff options
author | David Disseldorp <ddiss@suse.de> | 2021-07-28 14:53:52 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-03 14:27:42 +0300 |
commit | 7e457e5efc2856e10623e28047a4d8c92ef0aa69 (patch) | |
tree | 457eb6ed52c3a066aebcf9bc3242184dffddb2ef /drivers/target/target_core_transport.c | |
parent | 018c14911dd7e2feedd96d440f12ea999e459fff (diff) | |
download | linux-7e457e5efc2856e10623e28047a4d8c92ef0aa69.tar.xz |
scsi: target: core: Avoid using lun_tg_pt_gp after unlock
core_alua_state_lba_dependent() currently uses lun->lun_tg_pt_gp without
holding the lun_tg_pt_gp_lock. The lock is taken in the caller, so obtain
the needed tg_pt_gp_id there instead.
Link: https://lore.kernel.org/r/20210728115353.2396-2-ddiss@suse.de
Cc: Hannes Reinecke <hare@suse.de>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_transport.c')
0 files changed, 0 insertions, 0 deletions