From 63a4964eecc6694b422f563ad206334d368d860b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 7 Apr 2002 01:28:34 +0000 Subject: [PATCH] Change jobref and *ijoblist from int to long in order to avoid a catastrophe after the 2^32nd AIO operation on 64-bit architectures. --- sys/kern/vfs_aio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 406bb4c6227..f22152a8da3 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1594,7 +1594,7 @@ aio_return(struct thread *td, struct aio_return_args *uap) { struct proc *p = td->td_proc; int s; - int jobref; + long jobref; struct aiocblist *cb, *ncb; struct aiocb *ujob; struct kaioinfo *ki; @@ -1664,7 +1664,7 @@ aio_suspend(struct thread *td, struct aio_suspend_args *uap) int i; int njoblist; int error, s, timo; - int *ijoblist; + long *ijoblist; struct aiocb **ujoblist; if (uap->nent > AIO_LISTIO_MAX) @@ -1890,7 +1890,7 @@ aio_error(struct thread *td, struct aio_error_args *uap) int s; struct aiocblist *cb; struct kaioinfo *ki; - int jobref; + long jobref; ki = p->p_aioinfo; if (ki == NULL)