mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-21 07:45:07 +00:00
o Make a correction to the last change: In aio_cancel(2) return AIO_ALLDONE
instead of EINVAL if p->p_aioinfo is NULL.
This commit is contained in:
parent
af338bea64
commit
ad49abc087
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101694
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue