diff options
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index d51d3fc..8c21215 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -543,6 +543,7 @@ aio_proc_rundown(void *arg, struct proc *p) if (ki == NULL) return; + mtx_lock(&Giant); ki->kaio_flags |= LIOJ_SIGNAL_POSTED; while ((ki->kaio_active_count > 0) || (ki->kaio_buffer_count > ki->kaio_buffer_finished_count)) { @@ -643,6 +644,7 @@ restart4: uma_zfree(kaio_zone, ki); p->p_aioinfo = NULL; + mtx_unlock(&Giant); } /* |