Home
last modified time | relevance | path

Searched refs:rwsem (Results 1 – 25 of 45) sorted by relevance

12

/linux/fs/btrfs/
H A Ddev-replace.c355 down_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
358 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
361 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
419 down_write(&dev_replace->rwsem); in btrfs_run_dev_replace()
442 up_write(&dev_replace->rwsem); in btrfs_run_dev_replace()
643 down_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
654 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
682 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
699 down_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
704 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
[all …]
H A Dzoned.c1290 down_read(&dev_replace->rwsem); in btrfs_load_zone_info()
1294 up_read(&dev_replace->rwsem); in btrfs_load_zone_info()
1304 up_read(&dev_replace->rwsem); in btrfs_load_zone_info()
1325 up_read(&dev_replace->rwsem); in btrfs_load_zone_info()
1337 up_read(&dev_replace->rwsem); in btrfs_load_zone_info()
1365 up_read(&dev_replace->rwsem); in btrfs_load_zone_info()
2266 down_read(&dev_replace->rwsem); in do_zone_finish()
2284 up_read(&dev_replace->rwsem); in do_zone_finish()
2292 up_read(&dev_replace->rwsem); in do_zone_finish()
H A Dscrub.c2701 down_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
2705 up_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
2714 down_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
2717 up_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
2967 down_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
2971 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
2977 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
/linux/drivers/gnss/
H A Dcore.c48 down_write(&gdev->rwsem); in gnss_open()
60 up_write(&gdev->rwsem); in gnss_open()
72 down_write(&gdev->rwsem); in gnss_release()
81 up_write(&gdev->rwsem); in gnss_release()
162 down_read(&gdev->rwsem); in gnss_write()
167 up_read(&gdev->rwsem); in gnss_write()
251 init_rwsem(&gdev->rwsem); in gnss_allocate_device()
302 down_write(&gdev->rwsem); in gnss_deregister_device()
308 up_write(&gdev->rwsem); in gnss_deregister_device()
/linux/kernel/time/
H A Dposix-clock.c25 down_read(&clk->rwsem); in get_posix_clock()
30 up_read(&clk->rwsem); in get_posix_clock()
37 up_read(&clk->rwsem); in put_posix_clock()
120 down_read(&clk->rwsem); in posix_clock_open()
144 up_read(&clk->rwsem); in posix_clock_open()
185 init_rwsem(&clk->rwsem); in posix_clock_register()
205 down_write(&clk->rwsem); in posix_clock_unregister()
207 up_write(&clk->rwsem); in posix_clock_unregister()
/linux/kernel/
H A Dnotifier.c263 down_write(&nh->rwsem); in __blocking_notifier_chain_register()
265 up_write(&nh->rwsem); in __blocking_notifier_chain_register()
326 down_write(&nh->rwsem); in blocking_notifier_chain_unregister()
328 up_write(&nh->rwsem); in blocking_notifier_chain_unregister()
344 down_read(&nh->rwsem); in blocking_notifier_call_chain_robust()
346 up_read(&nh->rwsem); in blocking_notifier_call_chain_robust()
379 down_read(&nh->rwsem); in blocking_notifier_call_chain()
381 up_read(&nh->rwsem); in blocking_notifier_call_chain()
/linux/drivers/cpufreq/
H A Dcpufreq.c265 lockdep_assert_held(&policy->rwsem); in cpufreq_cpu_release()
267 up_write(&policy->rwsem); in cpufreq_cpu_release()
291 down_write(&policy->rwsem); in cpufreq_cpu_acquire()
502 lockdep_assert_held(&policy->rwsem); in cpufreq_enable_fast_switch()
990 down_read(&policy->rwsem); in show()
993 up_read(&policy->rwsem); in show()
1008 down_write(&policy->rwsem); in store()
1011 up_write(&policy->rwsem); in store()
1150 down_write(&policy->rwsem); in cpufreq_add_policy_cpu()
1161 up_write(&policy->rwsem); in cpufreq_add_policy_cpu()
[all …]
/linux/drivers/leds/
H A Dleds-bd2802.c71 struct rw_semaphore rwsem; member
330 down_write(&led->rwsem); \
332 up_write(&led->rwsem); \
435 down_read(&led->rwsem); in bd2802_show_adv_conf()
440 up_read(&led->rwsem); in bd2802_show_adv_conf()
453 down_write(&led->rwsem); in bd2802_store_adv_conf()
458 up_write(&led->rwsem); in bd2802_store_adv_conf()
478 down_read(&led->rwsem); \
480 up_read(&led->rwsem); \
494 down_write(&led->rwsem); \
[all …]
/linux/include/linux/
H A Dnotifier.h66 struct rw_semaphore rwsem; member
86 init_rwsem(&(name)->rwsem); \
102 .rwsem = __RWSEM_INITIALIZER((name).rwsem), \
H A Dgnss.h45 struct rw_semaphore rwsem; member
H A Dposix-clock.h90 struct rw_semaphore rwsem; member
H A Dipc_namespace.h21 struct rw_semaphore rwsem; member
H A Drwsem.h155 extern void __init_rwsem(struct rw_semaphore *rwsem, const char *name,
/linux/tools/perf/Documentation/
H A Dperf-lock.txt189 semaphore, spinlock, rwlock, rwlock:R, rwlock:W, rwsem, rwsem:R, rwsem:W,
194 suffix are shortcuts for the both variants. Ex) rwsem = rwsem:R + rwsem:W.
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c263 struct rw_semaphore___old *rwsem = (void *)lock; in get_lock_owner() local
264 owner = (unsigned long)BPF_CORE_READ(rwsem, owner); in get_lock_owner()
266 struct rw_semaphore___new *rwsem = (void *)lock; in get_lock_owner() local
267 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
271 struct rw_semaphore *rwsem = (void *)lock; in get_lock_owner()
272 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
/linux/ipc/
H A Dutil.c119 init_rwsem(&ids->rwsem); in ipc_init_ids()
344 down_write(&ids->rwsem); in ipcget_new()
346 up_write(&ids->rwsem); in ipcget_new()
408 down_write(&ids->rwsem); in ipcget_public()
434 up_write(&ids->rwsem); in ipcget_public()
850 down_read(&ids->rwsem); in sysvipc_proc_start()
877 up_read(&ids->rwsem); in sysvipc_proc_stop()
H A Dshm.c374 down_write(&shm_ids(ns).rwsem); in __shm_close()
393 up_write(&shm_ids(ns).rwsem); in __shm_close()
433 down_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
436 up_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
508 down_write(&shm_ids(ns).rwsem); in exit_shm()
530 up_write(&shm_ids(ns).rwsem); in exit_shm()
995 down_write(&shm_ids(ns).rwsem); in shmctl_down()
1034 up_write(&shm_ids(ns).rwsem); in shmctl_down()
1048 down_read(&shm_ids(ns).rwsem); in shmctl_ipc_info()
1050 up_read(&shm_ids(ns).rwsem); in shmctl_ipc_info()
[all …]
H A Dnamespace.c132 down_write(&ids->rwsem); in free_ipcs()
145 up_write(&ids->rwsem); in free_ipcs()
H A Dmsg.c408 down_write(&msg_ids(ns).rwsem); in msgctl_down()
473 up_write(&msg_ids(ns).rwsem); in msgctl_down()
498 down_read(&msg_ids(ns).rwsem); in msgctl_info()
502 up_read(&msg_ids(ns).rwsem); in msgctl_info()
/linux/kernel/locking/
H A DMakefile6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
/linux/fs/erofs/
H A Ddata.c201 down_read(&devs->rwsem); in erofs_map_dev()
204 up_read(&devs->rwsem); in erofs_map_dev()
209 up_read(&devs->rwsem); in erofs_map_dev()
213 up_read(&devs->rwsem); in erofs_map_dev()
215 down_read(&devs->rwsem); in erofs_map_dev()
229 up_read(&devs->rwsem); in erofs_map_dev()
H A Dsuper.c226 down_read(&sbi->devs->rwsem); in erofs_scan_devices()
253 up_read(&sbi->devs->rwsem); in erofs_scan_devices()
480 down_write(&sbi->devs->rwsem); in erofs_fc_parse_param()
482 up_write(&sbi->devs->rwsem); in erofs_fc_parse_param()
813 init_rwsem(&sbi->devs->rwsem); in erofs_init_fs_context()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_irq.c193 down_read(&fifo_state->rwsem); in vmw_fallback_wait()
237 up_read(&fifo_state->rwsem); in vmw_fallback_wait()
/linux/mm/
H A Drmap.c30 * anon_vma->rwsem
44 * anon_vma->rwsem,mapping->i_mmap_rwsem (memory_failure, collect_procs_anon)
132 if (rwsem_is_locked(&anon_vma->root->rwsem)) { in anon_vma_free()
177 * and that may actually touch the rwsem even in the newly
248 up_write(&root->rwsem); in lock_anon_vma_root()
250 down_write(&root->rwsem); in lock_anon_vma_root()
258 up_write(&root->rwsem); in unlock_anon_vma_root()
369 * The root anon_vma's rwsem is the lock actually used when we in anon_vma_fork()
437 * needing to write-acquire the anon_vma->root->rwsem. in unlink_anon_vmas()
455 init_rwsem(&anon_vma->rwsem); in anon_vma_ctor()
[all...]
/linux/lib/
H A Dlocking-selftest.c157 struct mutex *mutex, struct rw_semaphore *rwsem)\
162 init_rwsem(rwsem); \
2714 static inline const char *rw_semaphore_lockdep_name(struct rw_semaphore *rwsem) in rw_semaphore_lockdep_name() argument
2716 return rwsem->dep_map.name; in rw_semaphore_lockdep_name()
2719 static inline const char *rw_semaphore_lockdep_name(struct rw_semaphore *rwsem) in rw_semaphore_lockdep_name() argument

12