From bd6b65a7573b93de5b2792b4d244a3e6db9a1ee3 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 11 Sep 2000 04:06:48 +0000 Subject: aio processes need to have the Giant mutex before doing work. Submitted by: tegge --- sys/kern/vfs_aio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern/vfs_aio.c') 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) */ -- cgit v1.1