Re: panic: lock "aiomtx" already initialized

From: Kirk Russell <kirk_at_ba23.org>
Date: Sat, 11 Aug 2007 16:10:06 -0400 (EDT)
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
> _at__at_ -719,6 +719,7 _at__at_ 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/
Received on Sat Aug 11 2007 - 18:10:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC