diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2018-03-28 10:19:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 10:19:22 -0700 |
commit | b2ab468dded24a090dba9fc8396b3d394011ce14 (patch) | |
tree | 52ce015e474ee028851256f3b423075b7cf73f58 /Makefile.am | |
parent | 668173b5764386b47de0beb7c57ff8ce8f68f983 (diff) |
Fix mmap / libaio deadlock
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
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions