summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-09-11 04:06:48 +0000
committerjhb <jhb@FreeBSD.org>2000-09-11 04:06:48 +0000
commitbd6b65a7573b93de5b2792b4d244a3e6db9a1ee3 (patch)
treee3926f4ea84f37387d5b4240fdca1999258638e1 /sys/kern/vfs_aio.c
parent1c1433e6c3d7aa77a41d5bb1de86df30e92f9ef8 (diff)
downloadFreeBSD-src-bd6b65a7573b93de5b2792b4d244a3e6db9a1ee3.zip
FreeBSD-src-bd6b65a7573b93de5b2792b4d244a3e6db9a1ee3.tar.gz
aio processes need to have the Giant mutex before doing work.
Submitted by: tegge
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 861e7e3..b50a7d2 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -630,6 +630,7 @@ aio_daemon(void *uproc)
struct proc *curcp, *mycp, *userp;
struct vmspace *myvm, *tmpvm;
+ mtx_enter(&Giant, MTX_DEF);
/*
* Local copies of curproc (cp) and vmspace (myvm)
*/
OpenPOWER on IntegriCloud