Searched refs:lun_ref (Results 1 - 7 of 7) sorted by relevance

/linux-master/drivers/target/
H A Dtarget_core_tpg.c438 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref);
641 ret = percpu_ref_init(&lun->lun_ref, core_tpg_lun_ref_release, 0,
687 * Wait for any active I/O references to percpu se_lun->lun_ref to
688 * be released. Also, se_lun->lun_ref is now used by PR and ALUA
710 percpu_ref_exit(&lun->lun_ref);
H A Dtarget_core_device.c80 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) {
116 if (!percpu_ref_tryget_live(&se_lun->lun_ref))
124 * RCU reference protected by percpu se_lun->lun_ref taken above that
156 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) {
H A Dtarget_core_xcopy.c97 if (percpu_ref_tryget_live(&this_lun->lun_ref))
106 pr_debug("lun_ref held for se_dev: %p se_dev->se_dev_group: %p\n",
109 *_found_lun_ref = &this_lun->lun_ref;
409 pr_debug("putting dst lun_ref for %p\n", xop->dst_dev);
411 pr_debug("putting src lun_ref for %p\n", xop->src_dev);
H A Dtarget_core_pr.c729 if (!percpu_ref_tryget_live(&lun_tmp->lun_ref))
776 percpu_ref_put(&lun_tmp->lun_ref);
794 percpu_ref_put(&lun_tmp->lun_ref);
806 percpu_ref_put(&lun_tmp->lun_ref);
H A Dtarget_core_alua.c933 if (!percpu_ref_tryget_live(&lun->lun_ref))
971 percpu_ref_put(&lun->lun_ref);
H A Dtarget_core_transport.c776 percpu_ref_put(&lun->lun_ref);
3236 percpu_ref_kill(&lun->lun_ref);
/linux-master/include/target/
H A Dtarget_core_base.h542 /* Used for lun->lun_ref counting */
775 struct percpu_ref lun_ref; member in struct:se_lun

Completed in 183 milliseconds