Searched refs:lun_ref (Results 1 - 14 of 14) sorted by relevance
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_tpg.c | 437 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() 576 ret = percpu_ref_init(&lun->lun_ref, core_tpg_lun_ref_release, 0, in core_tpg_add_lun() 609 percpu_ref_exit(&lun->lun_ref); in core_tpg_add_lun() 628 * Wait for any active I/O references to percpu se_lun->lun_ref to in core_tpg_remove_lun() 629 * be released. Also, se_lun->lun_ref is now used by PR and ALUA in core_tpg_remove_lun() 651 percpu_ref_exit(&lun->lun_ref); in core_tpg_remove_lun()
|
H A D | target_core_device.c | 70 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun() 113 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun() 126 * RCU reference protected by percpu se_lun->lun_ref taken above that in transport_lookup_cmd_lun() 160 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_tmr_lun()
|
H A D | target_core_xcopy.c | 109 if (percpu_ref_tryget_live(&this_lun->lun_ref)) in target_xcopy_locate_se_dev_e4() 118 pr_debug("lun_ref held for se_dev: %p se_dev->se_dev_group: %p\n", in target_xcopy_locate_se_dev_e4() 121 *_found_lun_ref = &this_lun->lun_ref; in target_xcopy_locate_se_dev_e4() 422 pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); in xcopy_pt_undepend_remotedev() 424 pr_debug("putting src lun_ref for %p\n", xop->src_dev); in xcopy_pt_undepend_remotedev()
|
H A D | target_core_pr.c | 727 if (!percpu_ref_tryget_live(&lun_tmp->lun_ref)) in __core_scsi3_alloc_registration() 775 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration() 794 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration() 806 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration()
|
H A D | target_core_alua.c | 959 if (!percpu_ref_tryget_live(&lun->lun_ref)) in core_alua_queue_state_change_ua() 998 percpu_ref_put(&lun->lun_ref); in core_alua_queue_state_change_ua()
|
H A D | target_core_transport.c | 714 percpu_ref_put(&lun->lun_ref); in transport_lun_remove_cmd() 3062 percpu_ref_kill(&lun->lun_ref); in transport_clear_lun_ref()
|
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_tpg.c | 438 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() 641 ret = percpu_ref_init(&lun->lun_ref, core_tpg_lun_ref_release, 0, in core_tpg_add_lun() 687 * Wait for any active I/O references to percpu se_lun->lun_ref to in core_tpg_remove_lun() 688 * be released. Also, se_lun->lun_ref is now used by PR and ALUA in core_tpg_remove_lun() 710 percpu_ref_exit(&lun->lun_ref); in core_tpg_remove_lun()
|
H A D | target_core_device.c | 80 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun() 116 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) in transport_lookup_cmd_lun() 124 * RCU reference protected by percpu se_lun->lun_ref taken above that in transport_lookup_cmd_lun() 156 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_tmr_lun()
|
H A D | target_core_xcopy.c | 96 if (percpu_ref_tryget_live(&this_lun->lun_ref)) in target_xcopy_locate_se_dev_e4() 105 pr_debug("lun_ref held for se_dev: %p se_dev->se_dev_group: %p\n", in target_xcopy_locate_se_dev_e4() 108 *_found_lun_ref = &this_lun->lun_ref; in target_xcopy_locate_se_dev_e4() 408 pr_debug("putting dst lun_ref for %p\n", xop->dst_dev); in xcopy_pt_undepend_remotedev() 410 pr_debug("putting src lun_ref for %p\n", xop->src_dev); in xcopy_pt_undepend_remotedev()
|
H A D | target_core_pr.c | 728 if (!percpu_ref_tryget_live(&lun_tmp->lun_ref)) in __core_scsi3_alloc_registration() 775 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration() 793 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration() 805 percpu_ref_put(&lun_tmp->lun_ref); in __core_scsi3_alloc_registration()
|
H A D | target_core_alua.c | 934 if (!percpu_ref_tryget_live(&lun->lun_ref)) in core_alua_queue_state_change_ua() 972 percpu_ref_put(&lun->lun_ref); in core_alua_queue_state_change_ua()
|
H A D | target_core_transport.c | 776 percpu_ref_put(&lun->lun_ref); in transport_lun_remove_cmd() 3234 percpu_ref_kill(&lun->lun_ref); in transport_clear_lun_ref()
|
/kernel/linux/linux-5.10/include/target/ |
H A D | target_core_base.h | 525 /* Used for lun->lun_ref counting */ 755 struct percpu_ref lun_ref; member
|
/kernel/linux/linux-6.6/include/target/ |
H A D | target_core_base.h | 533 /* Used for lun->lun_ref counting */ 765 struct percpu_ref lun_ref; member
|
Completed in 33 milliseconds