| 972 | } |
| 973 | |
| 974 | static bool |
| 975 | aio_clear_cancel_function_locked(struct kaiocb *job) |
| 976 | { |
| 977 | |
| 978 | AIO_LOCK_ASSERT(job->userproc->p_aioinfo, MA_OWNED); |
| 979 | MPASS(job->cancel_fn != NULL); |
| 980 | if (job->jobflags & KAIOCB_CANCELLING) { |
| 981 | job->jobflags |= KAIOCB_CLEARED; |
| 982 | return (false); |
| 983 | } |
| 984 | job->cancel_fn = NULL; |
| 985 | return (true); |
| 986 | } |
| 987 | |
| 988 | bool |
| 989 | aio_clear_cancel_function(struct kaiocb *job) |
no outgoing calls
no test coverage detected