Searched refs:snap_rwsem (Results 1 – 9 of 9) sorted by relevance
247 up_read(&mdsc->snap_rwsem); in get_quota_realm()249 down_read(&mdsc->snap_rwsem); in get_quota_realm()293 down_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()297 up_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()303 up_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()340 down_read(&mdsc->snap_rwsem); in check_quota_exceeded()359 up_read(&mdsc->snap_rwsem); in check_quota_exceeded()361 down_read(&mdsc->snap_rwsem); in check_quota_exceeded()412 up_read(&mdsc->snap_rwsem); in check_quota_exceeded()499 down_read(&mdsc->snap_rwsem); in ceph_quota_update_statfs()[all …]
69 lockdep_assert_held(&mdsc->snap_rwsem); in ceph_get_snap_realm()119 lockdep_assert_held_write(&mdsc->snap_rwsem); in ceph_create_snap_realm()157 lockdep_assert_held(&mdsc->snap_rwsem); in __lookup_snap_realm()193 lockdep_assert_held_write(&mdsc->snap_rwsem); in __destroy_snap_realm()217 lockdep_assert_held_write(&mdsc->snap_rwsem); in __put_snap_realm()236 if (down_write_trylock(&mdsc->snap_rwsem)) { in ceph_put_snap_realm()239 up_write(&mdsc->snap_rwsem); in ceph_put_snap_realm()257 lockdep_assert_held_write(&mdsc->snap_rwsem); in __cleanup_empty_realms()275 down_write(&mdsc->snap_rwsem); in ceph_cleanup_global_and_empty_realms()280 up_write(&mdsc->snap_rwsem); in ceph_cleanup_global_and_empty_realms()[all …]
1827 WARN_ON_ONCE(!rwsem_is_locked(&mdsc->snap_rwsem)); in __ceph_mark_dirty_caps()2856 up_read(&mdsc->snap_rwsem); in try_get_cap_refs()2904 if (!down_read_trylock(&mdsc->snap_rwsem)) { in try_get_cap_refs()2915 down_read(&mdsc->snap_rwsem); in try_get_cap_refs()2971 up_read(&mdsc->snap_rwsem); in try_get_cap_refs()3505 __releases(session->s_mdsc->snap_rwsem) in handle_cap_grant()3788 up_read(&session->s_mdsc->snap_rwsem); in handle_cap_grant()4106 down_read(&mdsc->snap_rwsem); in handle_cap_export()4172 up_read(&mdsc->snap_rwsem); in handle_cap_export()4198 up_read(&mdsc->snap_rwsem); in handle_cap_export()[all …]
1247 if (!down_read_trylock(&mdsc->snap_rwsem)) { in __ceph_setxattr()1249 down_read(&mdsc->snap_rwsem); in __ceph_setxattr()1291 up_read(&mdsc->snap_rwsem); in __ceph_setxattr()1301 up_read(&mdsc->snap_rwsem); in __ceph_setxattr()
475 struct rw_semaphore snap_rwsem; member
3924 down_write(&mdsc->snap_rwsem); in handle_reply()3930 up_write(&mdsc->snap_rwsem); in handle_reply()3936 downgrade_write(&mdsc->snap_rwsem); in handle_reply()3938 down_read(&mdsc->snap_rwsem); in handle_reply()3953 up_read(&mdsc->snap_rwsem); in handle_reply()4898 down_read(&mdsc->snap_rwsem); in send_mds_reconnect()4989 up_read(&mdsc->snap_rwsem); in send_mds_reconnect()4995 up_read(&mdsc->snap_rwsem); in send_mds_reconnect()5502 init_rwsem(&mdsc->snap_rwsem); in ceph_mdsc_init()
963 lockdep_assert_held(&mdsc->snap_rwsem); in ceph_fill_inode()2532 if (!down_read_trylock(&mdsc->snap_rwsem)) { in __ceph_setattr()2534 down_read(&mdsc->snap_rwsem); in __ceph_setattr()2773 up_read(&mdsc->snap_rwsem); in __ceph_setattr()
1963 down_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()1968 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
730 down_read(&mdsc->snap_rwsem); in ceph_finish_async_create()733 up_read(&mdsc->snap_rwsem); in ceph_finish_async_create()