mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Calling uiomove() in mappedread() under the page lock can result in a deadlock if the user space page needs to be faulted in. Resolve the issue by dropping the page lock before the uiomove(). The inode range lock protects against concurrent updates via zfs_read() and zfs_write(). Reviewed-by: Albert Lee <trisk@forkgnu.org> Reviewed-by: Chunwei Chen <david.chen@nutanix.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7335 Closes #7339
14 lines
303 B
Text
14 lines
303 B
Text
dnl #
|
|
dnl # Check for libaio - only used for libaiot test cases.
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBAIO], [
|
|
LIBAIO=
|
|
|
|
AC_CHECK_HEADER([libaio.h], [
|
|
user_libaio=yes
|
|
AC_SUBST([LIBAIO], ["-laio"])
|
|
AC_DEFINE([HAVE_LIBAIO], 1, [Define if you have libaio])
|
|
], [
|
|
user_libaio=no
|
|
])
|
|
])
|