diff options
author | alc <alc@FreeBSD.org> | 2002-08-11 19:04:17 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-08-11 19:04:17 +0000 |
commit | eb7be59921a73b1a926c3413265df0cf4df46549 (patch) | |
tree | 9129612986baa561191938046324e61228f300b7 /sys | |
parent | 017aab1fde0d8fd18f78554ecf21630acd240177 (diff) | |
download | FreeBSD-src-eb7be59921a73b1a926c3413265df0cf4df46549.zip FreeBSD-src-eb7be59921a73b1a926c3413265df0cf4df46549.tar.gz |
o Make a correction to the last change: In aio_cancel(2) return AIO_ALLDONE
instead of EINVAL if p->p_aioinfo is NULL.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index d296aca..eaaff0f 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1776,7 +1776,7 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap) } ki=p->p_aioinfo; if (ki == NULL) - return (EINVAL); + goto done; s = splnet(); for (cbe = TAILQ_FIRST(&ki->kaio_jobqueue); cbe; cbe = cbn) { @@ -1809,7 +1809,7 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap) } } splx(s); - +done: if (notcancelled) { td->td_retval[0] = AIO_NOTCANCELED; return 0; |