Lines Matching refs:lock_rwsem
412 struct rw_semaphore lock_rwsem; member
525 lockdep_assert_held(&rbd_dev->lock_rwsem); in __rbd_is_lock_owner()
535 down_read(&rbd_dev->lock_rwsem); in rbd_is_lock_owner()
537 up_read(&rbd_dev->lock_rwsem); in rbd_is_lock_owner()
3422 lockdep_assert_held(&rbd_dev->lock_rwsem); in rbd_lock_add_request()
3439 lockdep_assert_held(&rbd_dev->lock_rwsem); in rbd_lock_del_request()
3549 down_read(&rbd_dev->lock_rwsem); in __rbd_img_handle_request()
3555 up_read(&rbd_dev->lock_rwsem); in __rbd_img_handle_request()
3810 lockdep_assert_held_write(&rbd_dev->lock_rwsem); in wake_lock_waiters()
4000 down_read(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4004 up_read(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4008 up_read(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4009 down_write(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4013 up_write(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4026 up_write(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4046 up_write(&rbd_dev->lock_rwsem); in rbd_try_acquire_lock()
4069 down_write(&rbd_dev->lock_rwsem); in rbd_acquire_lock()
4071 up_write(&rbd_dev->lock_rwsem); in rbd_acquire_lock()
4091 lockdep_assert_held_write(&rbd_dev->lock_rwsem); in rbd_quiesce_lock()
4104 up_write(&rbd_dev->lock_rwsem); in rbd_quiesce_lock()
4107 down_write(&rbd_dev->lock_rwsem); in rbd_quiesce_lock()
4154 down_write(&rbd_dev->lock_rwsem); in rbd_release_lock_work()
4156 up_write(&rbd_dev->lock_rwsem); in rbd_release_lock_work()
4189 down_write(&rbd_dev->lock_rwsem); in rbd_handle_acquired_lock()
4196 downgrade_write(&rbd_dev->lock_rwsem); in rbd_handle_acquired_lock()
4198 down_read(&rbd_dev->lock_rwsem); in rbd_handle_acquired_lock()
4202 up_read(&rbd_dev->lock_rwsem); in rbd_handle_acquired_lock()
4218 down_write(&rbd_dev->lock_rwsem); in rbd_handle_released_lock()
4226 downgrade_write(&rbd_dev->lock_rwsem); in rbd_handle_released_lock()
4228 down_read(&rbd_dev->lock_rwsem); in rbd_handle_released_lock()
4232 up_read(&rbd_dev->lock_rwsem); in rbd_handle_released_lock()
4256 down_read(&rbd_dev->lock_rwsem); in rbd_handle_request_lock()
4282 up_read(&rbd_dev->lock_rwsem); in rbd_handle_request_lock()
4398 down_write(&rbd_dev->lock_rwsem); in rbd_watch_errcb()
4400 up_write(&rbd_dev->lock_rwsem); in rbd_watch_errcb()
4557 down_write(&rbd_dev->lock_rwsem); in rbd_reregister_watch()
4559 up_write(&rbd_dev->lock_rwsem); in rbd_reregister_watch()
4567 down_write(&rbd_dev->lock_rwsem); in rbd_reregister_watch()
4570 up_write(&rbd_dev->lock_rwsem); in rbd_reregister_watch()
5322 init_rwsem(&rbd_dev->lock_rwsem); in __rbd_dev_create()
6523 down_write(&rbd_dev->lock_rwsem); in rbd_dev_image_unlock()
6526 up_write(&rbd_dev->lock_rwsem); in rbd_dev_image_unlock()