panic: lock "aiomtx" already initialized
Kirk Russell
kirk at ba23.org
Sat Aug 11 13:10:09 PDT 2007
On Thu, 9 Aug 2007, Kostik Belousov wrote:
>
> This patch should fix the problem:
>
> diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
> index 7610da8..47580b6 100644
> --- a/sys/kern/vfs_aio.c
> +++ b/sys/kern/vfs_aio.c
> @@ -719,6 +719,7 @@ restart:
> }
> AIO_UNLOCK(ki);
> taskqueue_drain(taskqueue_aiod_bio, &ki->kaio_task);
> + mtx_destroy(&ki->kaio_mtx);
> uma_zfree(kaio_zone, ki);
> p->p_aioinfo = NULL;
> }
>
> It seems that you shall use a lot of quickly exit()ing processes all of
> them using aio to reliable reproduce the problem.
I merged your patch into 7.0-CURRENT-200706. I can no longer
reproduce the kern/114216 panic using the dt AIO client script.
--
Kirk Russell <kirk at ba23.org> http://www.ba23.org/
More information about the freebsd-current
mailing list