mirror_zfs/module/os/freebsd/zfs
Brian Behlendorf 2ade659eb4
Fix abd_enter/exit_critical wrappers
Commit fc551d7 introduced the wrappers abd_enter_critical() and
abd_exit_critical() to mark critical sections.  On Linux these are
implemented with the local_irq_save() and local_irq_restore() macros
which set the 'flags' argument when saving.  By wrapping them with
a function the local variable is no longer set by the macro and is
no longer properly restored.

Convert abd_enter_critical() and abd_exit_critical() to macros to
resolve this issue and ensure the flags are properly restored.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10332
2020-05-14 20:45:16 -07:00
..
abd_os.c Fix abd_enter/exit_critical wrappers 2020-05-14 20:45:16 -07:00
arc_os.c Update FreeBSD tunables 2020-04-15 11:14:47 -07:00
crypto_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
dmu_os.c Use new FreeBSD API to largely eliminate object locking 2020-04-17 09:30:26 -07:00
hkdf.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
kmod_core.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spa_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spa_stats.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sysctl_os.c Update FreeBSD tunables 2020-04-15 11:14:47 -07:00
vdev_file.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
vdev_geom.c Avoid the GEOM topology lock recursion when autoexpanding a pool 2020-05-04 15:10:41 -07:00
vdev_label_os.c Add support for boot environment data to be stored in the label 2020-05-07 09:36:33 -07:00
zfs_acl.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_ctldir.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_debug.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_dir.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_file_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_fuid_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_ioctl_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_onexit_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_vfsops.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_vnops.c Use new FreeBSD API to largely eliminate object locking 2020-04-17 09:30:26 -07:00
zfs_znode.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zio_crypt.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zvol_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00