Home
last modified time | relevance | path

Searched refs:zv_suspend_lock (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzvol_os.c268 if (!rw_tryenter(&zv->zv_suspend_lock, ZVOL_RW_READER)) { in zvol_geom_open()
270 rw_enter(&zv->zv_suspend_lock, ZVOL_RW_READER); in zvol_geom_open()
274 rw_exit(&zv->zv_suspend_lock); in zvol_geom_open()
286 ASSERT(ZVOL_RW_READ_HELD(&zv->zv_suspend_lock)); in zvol_geom_open()
295 rw_exit(&zv->zv_suspend_lock); in zvol_geom_open()
346 rw_exit(&zv->zv_suspend_lock); in zvol_geom_open()
386 if (!rw_tryenter(&zv->zv_suspend_lock, ZVOL_RW_READER)) { in zvol_geom_close()
388 rw_enter(&zv->zv_suspend_lock, ZVOL_RW_READER); in zvol_geom_close()
393 rw_exit(&zv->zv_suspend_lock); in zvol_geom_close()
409 ASSERT(ZVOL_RW_READ_HELD(&zv->zv_suspend_lock)); in zvol_geom_close()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzvol_os.c254 rw_exit(&zv->zv_suspend_lock); in zvol_write()
316 rw_exit(&zv->zv_suspend_lock); in zvol_write()
404 rw_exit(&zv->zv_suspend_lock); in zvol_discard()
482 rw_exit(&zv->zv_suspend_lock); in zvol_read()
569 rw_enter(&zv->zv_suspend_lock, RW_READER); in zvol_request_impl()
578 rw_exit(&zv->zv_suspend_lock); in zvol_request_impl()
579 rw_enter(&zv->zv_suspend_lock, RW_WRITER); in zvol_request_impl()
588 rw_downgrade(&zv->zv_suspend_lock); in zvol_request_impl()
649 rw_enter(&zv->zv_suspend_lock, RW_READER); in zvol_request_impl()
742 if (!rw_tryenter(&zv->zv_suspend_lock, RW_READER)) { in zvol_open()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzvol.c145 !rw_tryenter(&zv->zv_suspend_lock, mode)) { in zvol_find_by_name_hash()
147 rw_enter(&zv->zv_suspend_lock, mode); in zvol_find_by_name_hash()
319 RW_READ_HELD(&zv->zv_suspend_lock))); in zvol_set_volsize()
323 rw_exit(&zv->zv_suspend_lock); in zvol_set_volsize()
356 rw_exit(&zv->zv_suspend_lock); in zvol_set_volsize()
767 ASSERT(RW_LOCK_HELD(&zv->zv_suspend_lock)); in zvol_setup_zv()
806 RW_LOCK_HELD(&zv->zv_suspend_lock)); in zvol_shutdown_zv()
833 ASSERT(RW_WRITE_HELD(&zv->zv_suspend_lock)); in zvol_tag()
852 ASSERT(RW_WRITE_HELD(&zv->zv_suspend_lock)); in zvol_suspend()
874 ASSERT(RW_WRITE_HELD(&zv->zv_suspend_lock)); in zvol_resume()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzvol_impl.h56 krwlock_t zv_suspend_lock; /* suspend lock */ member