mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Retire ZFS_TEARDOWN_TRY_ENTER_READ
There were never any users and it so happens the operation is not even supported by rrm locks -- the macros were wrong for Linux and FreeBSD when not using it's RMS locks. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Closes #13906
This commit is contained in:
parent
402426c7d8
commit
c629f0bf62
@ -128,9 +128,6 @@ struct zfsvfs {
|
|||||||
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
||||||
rms_destroy(&(zfsvfs)->z_teardown_lock)
|
rms_destroy(&(zfsvfs)->z_teardown_lock)
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_TRY_ENTER_READ(zfsvfs) \
|
|
||||||
rms_try_rlock(&(zfsvfs)->z_teardown_lock)
|
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
||||||
rms_rlock(&(zfsvfs)->z_teardown_lock);
|
rms_rlock(&(zfsvfs)->z_teardown_lock);
|
||||||
|
|
||||||
@ -161,9 +158,6 @@ struct zfsvfs {
|
|||||||
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
||||||
rrm_destroy(&(zfsvfs)->z_teardown_lock)
|
rrm_destroy(&(zfsvfs)->z_teardown_lock)
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_TRY_ENTER_READ(zfsvfs) \
|
|
||||||
rw_tryenter(&(zfsvfs)->z_teardown_lock, RW_READER)
|
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
||||||
rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
|
rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
|
||||||
|
|
||||||
|
@ -143,9 +143,6 @@ struct zfsvfs {
|
|||||||
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
#define ZFS_TEARDOWN_DESTROY(zfsvfs) \
|
||||||
rrm_destroy(&(zfsvfs)->z_teardown_lock)
|
rrm_destroy(&(zfsvfs)->z_teardown_lock)
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_TRY_ENTER_READ(zfsvfs) \
|
|
||||||
rw_tryenter(&(zfsvfs)->z_teardown_lock, RW_READER)
|
|
||||||
|
|
||||||
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
#define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \
|
||||||
rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
|
rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user