Home
last modified time | relevance | path

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

12

/Linux-v5.10/fs/btrfs/
Ddev-replace.c345 down_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
348 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
351 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace()
409 down_write(&dev_replace->rwsem); in btrfs_run_dev_replace()
432 up_write(&dev_replace->rwsem); in btrfs_run_dev_replace()
491 down_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
501 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
529 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
541 down_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
546 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start()
[all …]
Dreada.c381 down_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
384 up_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
395 up_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
401 up_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
446 up_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
454 up_read(&fs_info->dev_replace.rwsem); in reada_find_extent()
Dscrub.c3592 down_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
3596 up_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
3633 down_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
3636 up_write(&dev_replace->rwsem); in scrub_enumerate_chunks()
3885 down_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
3889 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
3895 up_read(&fs_info->dev_replace.rwsem); in btrfs_scrub_dev()
/Linux-v5.10/drivers/gnss/
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()
252 init_rwsem(&gdev->rwsem); in gnss_allocate_device()
303 down_write(&gdev->rwsem); in gnss_deregister_device()
309 up_write(&gdev->rwsem); in gnss_deregister_device()
/Linux-v5.10/kernel/time/
Dposix-clock.c24 down_read(&clk->rwsem); in get_posix_clock()
29 up_read(&clk->rwsem); in get_posix_clock()
36 up_read(&clk->rwsem); in put_posix_clock()
114 down_read(&clk->rwsem); in posix_clock_open()
130 up_read(&clk->rwsem); in posix_clock_open()
166 init_rwsem(&clk->rwsem); in posix_clock_register()
186 down_write(&clk->rwsem); in posix_clock_unregister()
188 up_write(&clk->rwsem); in posix_clock_unregister()
/Linux-v5.10/kernel/
Dnotifier.c253 down_write(&nh->rwsem); in blocking_notifier_chain_register()
255 up_write(&nh->rwsem); in blocking_notifier_chain_register()
283 down_write(&nh->rwsem); in blocking_notifier_chain_unregister()
285 up_write(&nh->rwsem); in blocking_notifier_chain_unregister()
301 down_read(&nh->rwsem); in blocking_notifier_call_chain_robust()
303 up_read(&nh->rwsem); in blocking_notifier_call_chain_robust()
336 down_read(&nh->rwsem); in blocking_notifier_call_chain()
338 up_read(&nh->rwsem); in blocking_notifier_call_chain()
/Linux-v5.10/include/linux/
Drmap.h31 struct rw_semaphore rwsem; /* W: modification, R: walking the list */ member
120 down_write(&anon_vma->root->rwsem); in anon_vma_lock_write()
125 up_write(&anon_vma->root->rwsem); in anon_vma_unlock_write()
130 down_read(&anon_vma->root->rwsem); in anon_vma_lock_read()
135 up_read(&anon_vma->root->rwsem); in anon_vma_unlock_read()
Dnotifier.h66 struct rw_semaphore rwsem; member
85 init_rwsem(&(name)->rwsem); \
101 .rwsem = __RWSEM_INITIALIZER((name).rwsem), \
Dposix-clock.h89 struct rw_semaphore rwsem; member
Dgnss.h45 struct rw_semaphore rwsem; member
Dipc_namespace.h19 struct rw_semaphore rwsem; member
Dnfs_fs.h181 struct rw_semaphore rwsem; member
/Linux-v5.10/drivers/cpufreq/
Dcpufreq.c261 lockdep_assert_held(&policy->rwsem); in cpufreq_cpu_release()
263 up_write(&policy->rwsem); in cpufreq_cpu_release()
287 down_write(&policy->rwsem); in cpufreq_cpu_acquire()
494 lockdep_assert_held(&policy->rwsem); in cpufreq_enable_fast_switch()
954 down_read(&policy->rwsem); in show()
956 up_read(&policy->rwsem); in show()
979 down_write(&policy->rwsem); in store()
981 up_write(&policy->rwsem); in store()
1117 down_write(&policy->rwsem); in cpufreq_add_policy_cpu()
1128 up_write(&policy->rwsem); in cpufreq_add_policy_cpu()
[all …]
/Linux-v5.10/drivers/leds/
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-v5.10/kernel/locking/
DMakefile6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
/Linux-v5.10/ipc/
Dutil.c118 init_rwsem(&ids->rwsem); in ipc_init_ids()
343 down_write(&ids->rwsem); in ipcget_new()
345 up_write(&ids->rwsem); in ipcget_new()
407 down_write(&ids->rwsem); in ipcget_public()
433 up_write(&ids->rwsem); in ipcget_public()
813 down_read(&ids->rwsem); in sysvipc_proc_start()
840 up_read(&ids->rwsem); in sysvipc_proc_stop()
Dshm.c329 down_write(&shm_ids(ns).rwsem); in shm_close()
348 up_write(&shm_ids(ns).rwsem); in shm_close()
376 down_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
379 up_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
397 down_read(&shm_ids(ns).rwsem); in exit_shm()
405 up_read(&shm_ids(ns).rwsem); in exit_shm()
414 down_write(&shm_ids(ns).rwsem); in exit_shm()
426 up_write(&shm_ids(ns).rwsem); in exit_shm()
897 down_write(&shm_ids(ns).rwsem); in shmctl_down()
936 up_write(&shm_ids(ns).rwsem); in shmctl_down()
[all …]
Dnamespace.c102 down_write(&ids->rwsem); in free_ipcs()
115 up_write(&ids->rwsem); in free_ipcs()
Dmsg.c405 down_write(&msg_ids(ns).rwsem); in msgctl_down()
470 up_write(&msg_ids(ns).rwsem); in msgctl_down()
495 down_read(&msg_ids(ns).rwsem); in msgctl_info()
506 up_read(&msg_ids(ns).rwsem); in msgctl_info()
Dsem.c1324 down_read(&sem_ids(ns).rwsem); in semctl_info()
1333 up_read(&sem_ids(ns).rwsem); in semctl_info()
1605 down_write(&sem_ids(ns).rwsem); in semctl_down()
1644 up_write(&sem_ids(ns).rwsem); in semctl_down()
/Linux-v5.10/mm/
Drmap.c126 if (rwsem_is_locked(&anon_vma->root->rwsem)) { in anon_vma_free()
243 up_write(&root->rwsem); in lock_anon_vma_root()
245 down_write(&root->rwsem); in lock_anon_vma_root()
253 up_write(&root->rwsem); in unlock_anon_vma_root()
440 init_rwsem(&anon_vma->rwsem); in anon_vma_ctor()
536 if (down_read_trylock(&root_anon_vma->rwsem)) { in page_lock_anon_vma_read()
543 up_read(&root_anon_vma->rwsem); in page_lock_anon_vma_read()
/Linux-v5.10/tools/perf/util/
Dpython-ext-sources37 util/rwsem.c
/Linux-v5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_irq.c183 down_read(&fifo_state->rwsem); in vmw_fallback_wait()
233 up_read(&fifo_state->rwsem); in vmw_fallback_wait()
Dvmwgfx_fifo.c120 init_rwsem(&fifo->rwsem); in vmw_fifo_init()
478 down_write(&fifo_state->rwsem); in vmw_local_fifo_commit()
490 up_write(&fifo_state->rwsem); in vmw_local_fifo_commit()
/Linux-v5.10/Documentation/driver-api/driver-model/
Dporting.rst433 - rwsem
435 struct bus_type contains an rwsem that protects all core accesses to

12