/linux/drivers/nvme/host/ |
H A D | multipath.c | 165 int srcu_idx; in nvme_kick_requeue_lists() local 167 srcu_idx = srcu_read_lock(&ctrl->srcu); in nvme_kick_requeue_lists() 176 srcu_read_unlock(&ctrl->srcu, srcu_idx); in nvme_kick_requeue_lists() 210 int srcu_idx; in nvme_mpath_clear_ctrl_paths() local 212 srcu_idx = srcu_read_lock(&ctrl->srcu); in nvme_mpath_clear_ctrl_paths() 218 srcu_read_unlock(&ctrl->srcu, srcu_idx); in nvme_mpath_clear_ctrl_paths() 226 int srcu_idx; in nvme_mpath_revalidate_paths() local 228 srcu_idx = srcu_read_lock(&head->srcu); in nvme_mpath_revalidate_paths() 234 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_mpath_revalidate_paths() 453 int srcu_idx; in nvme_ns_head_submit_bio() local [all …]
|
H A D | ioctl.c | 684 void __user *argp, struct nvme_ns_head *head, int srcu_idx, in nvme_ns_head_ctrl_ioctl() argument 692 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_ctrl_ioctl() 706 int srcu_idx, ret = -EWOULDBLOCK; in nvme_ns_head_ioctl() local 712 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_ioctl() 723 return nvme_ns_head_ctrl_ioctl(ns, cmd, argp, head, srcu_idx, in nvme_ns_head_ioctl() 728 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_ioctl() 741 int srcu_idx, ret = -EWOULDBLOCK; in nvme_ns_head_chr_ioctl() local 743 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_chr_ioctl() 749 return nvme_ns_head_ctrl_ioctl(ns, cmd, argp, head, srcu_idx, in nvme_ns_head_chr_ioctl() 754 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_chr_ioctl() [all …]
|
H A D | pr.c | 56 int srcu_idx = srcu_read_lock(&head->srcu); in nvme_send_ns_head_pr_command() local 64 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_send_ns_head_pr_command()
|
H A D | core.c | 3808 int srcu_idx; in nvme_find_get_ns() local 3810 srcu_idx = srcu_read_lock(&ctrl->srcu); in nvme_find_get_ns() 3822 srcu_read_unlock(&ctrl->srcu, srcu_idx); in nvme_find_get_ns() 4899 int srcu_idx; in nvme_mark_namespaces_dead() local 4901 srcu_idx = srcu_read_lock(&ctrl->srcu); in nvme_mark_namespaces_dead() 4905 srcu_read_unlock(&ctrl->srcu, srcu_idx); in nvme_mark_namespaces_dead() 4912 int srcu_idx; in nvme_unfreeze() local 4914 srcu_idx = srcu_read_lock(&ctrl->srcu); in nvme_unfreeze() 4918 srcu_read_unlock(&ctrl->srcu, srcu_idx); in nvme_unfreeze() 4926 int srcu_idx; in nvme_wait_freeze_timeout() local [all …]
|
H A D | sysfs.c | 190 int srcu_idx, ret = -EWOULDBLOCK; in ns_head_update_nuse() local 196 srcu_idx = srcu_read_lock(&head->srcu); in ns_head_update_nuse() 209 srcu_read_unlock(&head->srcu, srcu_idx); in ns_head_update_nuse()
|
/linux/drivers/md/ |
H A D | dm-verity-loadpin.c | 58 int srcu_idx; in dm_verity_loadpin_is_bdev_trusted() local 71 table = dm_get_live_table(md, &srcu_idx); in dm_verity_loadpin_is_bdev_trusted() 82 dm_put_live_table(md, srcu_idx); in dm_verity_loadpin_is_bdev_trusted()
|
H A D | dm-rq.c | 494 int srcu_idx; in dm_mq_queue_rq() local 497 map = dm_get_live_table(md, &srcu_idx); in dm_mq_queue_rq() 501 dm_put_live_table(md, srcu_idx); in dm_mq_queue_rq() 505 dm_put_live_table(md, srcu_idx); in dm_mq_queue_rq()
|
/linux/arch/arm64/include/asm/ |
H A D | kvm_mmu.h | 275 int srcu_idx = srcu_read_lock(&kvm->srcu); in kvm_read_guest_lock() local 278 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvm_read_guest_lock() 286 int srcu_idx = srcu_read_lock(&kvm->srcu); in kvm_write_guest_lock() local 289 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvm_write_guest_lock()
|
/linux/mm/kasan/ |
H A D | quarantine.c | 243 int srcu_idx; in kasan_quarantine_reduce() local 259 srcu_idx = srcu_read_lock(&remove_cache_srcu); in kasan_quarantine_reduce() 287 srcu_read_unlock(&remove_cache_srcu, srcu_idx); in kasan_quarantine_reduce()
|
/linux/include/linux/ |
H A D | srcutree.h | 102 unsigned int srcu_idx; /* Current rdr array element. */ member 227 idx = READ_ONCE(ssp->srcu_idx) & 0x1; in __srcu_read_lock_lite()
|
H A D | device-mapper.h | 602 struct dm_table *dm_get_live_table(struct mapped_device *md, int *srcu_idx); 603 void dm_put_live_table(struct mapped_device *md, int srcu_idx);
|
H A D | uprobes.h | 114 int srcu_idx; member
|
/linux/fs/bcachefs/ |
H A D | btree_key_cache.c | 492 int srcu_idx = srcu_read_lock(&c->btree_trans_barrier); in bch2_btree_key_cache_journal_flush() local 516 srcu_read_unlock(&c->btree_trans_barrier, srcu_idx); in bch2_btree_key_cache_journal_flush() 602 int srcu_idx; in bch2_btree_key_cache_scan() local 604 srcu_idx = srcu_read_lock(&c->btree_trans_barrier); in bch2_btree_key_cache_scan() 618 srcu_read_unlock(&c->btree_trans_barrier, srcu_idx); in bch2_btree_key_cache_scan() 667 srcu_read_unlock(&c->btree_trans_barrier, srcu_idx); in bch2_btree_key_cache_scan()
|
H A D | btree_types.h | 522 int srcu_idx; member
|
H A D | btree_iter.c | 3045 srcu_read_unlock(&c->btree_trans_barrier, trans->srcu_idx); in bch2_trans_srcu_unlock() 3053 trans->srcu_idx = srcu_read_lock(&trans->c->btree_trans_barrier); in bch2_trans_srcu_lock() 3228 trans->srcu_idx = srcu_read_lock(&c->btree_trans_barrier); in __bch2_trans_get() 3275 srcu_read_unlock(&c->btree_trans_barrier, trans->srcu_idx); in bch2_trans_put()
|
/linux/kernel/rcu/ |
H A D | srcutree.c | 250 ssp->srcu_idx = 0; in init_srcu_struct_fields() 747 idx = READ_ONCE(ssp->srcu_idx) & 0x1; in __srcu_read_lock() 778 idx = READ_ONCE(ssp->srcu_idx) & 0x1; in __srcu_read_lock_nmisafe() 1155 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); // Flip the counter. in srcu_flip() 1678 return READ_ONCE(ssp->srcu_idx); in srcu_batches_completed() 1723 idx = 1 ^ (ssp->srcu_idx & 1); in srcu_advance_state() 1741 idx = 1 ^ (ssp->srcu_idx & 1); in srcu_advance_state() 1899 idx = ssp->srcu_idx & 0x1; in srcu_torture_stats_print()
|
H A D | rcu.h | 600 *gp_seq = sp->srcu_idx; in srcutorture_get_gp_data()
|
/linux/kernel/events/ |
H A D | uprobes.c | 679 static void hprobe_init_leased(struct hprobe *hprobe, struct uprobe *uprobe, int srcu_idx) 684 hprobe->srcu_idx = srcu_idx; in hprobe_init_leased() 692 hprobe->srcu_idx = -1; in hprobe_init_stable() 729 __srcu_read_unlock(&uretprobes_srcu, hprobe->srcu_idx); in hprobe_finalize() 797 __srcu_read_unlock(&uretprobes_srcu, hprobe->srcu_idx); in hprobe_expire() 2127 int srcu_idx; in prepare_uretprobe() 2166 srcu_idx = __srcu_read_lock(&uretprobes_srcu); in prepare_uretprobe() 2175 hprobe_init_leased(&ri->hprobe, uprobe, srcu_idx); in prepare_uretprobe() 680 hprobe_init_leased(struct hprobe * hprobe,struct uprobe * uprobe,int srcu_idx) hprobe_init_leased() argument 2128 int srcu_idx; prepare_uretprobe() local
|
/linux/drivers/net/wireless/microchip/wilc1000/ |
H A D | hif.c | 1576 int srcu_idx; in wilc_network_info_received() local 1581 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_network_info_received() 1613 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_network_info_received() 1621 int srcu_idx; in wilc_gnrl_async_info_received() local 1628 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_gnrl_async_info_received() 1655 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_gnrl_async_info_received() 1663 int srcu_idx; in wilc_scan_complete_received() local 1668 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_scan_complete_received() 1693 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_scan_complete_received()
|
/linux/arch/s390/kvm/ |
H A D | pv.c | 254 int srcu_idx; in kvm_s390_destroy_lower_2g() local 256 srcu_idx = srcu_read_lock(&kvm->srcu); in kvm_s390_destroy_lower_2g() 268 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvm_s390_destroy_lower_2g()
|
H A D | priv.c | 1300 int srcu_idx; in handle_essa() local 1303 srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in handle_essa() 1305 srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx); in handle_essa()
|
/linux/virt/kvm/ |
H A D | kvm_main.c | 5913 int dev_idx, srcu_idx; in kvm_io_bus_get_dev() local 5916 srcu_idx = srcu_read_lock(&kvm->srcu); in kvm_io_bus_get_dev() 5929 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvm_io_bus_get_dev()
|