Module Name: src Committed By: yamt Date: Fri Dec 17 22:05:36 UTC 2010
Modified Files: src/sys/kern: sys_aio.c Log Message: aio_worker: add an assertion To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/kern/sys_aio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/sys_aio.c diff -u src/sys/kern/sys_aio.c:1.35 src/sys/kern/sys_aio.c:1.36 --- src/sys/kern/sys_aio.c:1.35 Fri Aug 6 18:36:09 2010 +++ src/sys/kern/sys_aio.c Fri Dec 17 22:05:36 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_aio.c,v 1.35 2010/08/06 18:36:09 jruoho Exp $ */ +/* $NetBSD: sys_aio.c,v 1.36 2010/12/17 22:05:36 yamt Exp $ */ /* * Copyright (c) 2007 Mindaugas Rasiukevicius <rmind at NetBSD org> @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.35 2010/08/06 18:36:09 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.36 2010/12/17 22:05:36 yamt Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -327,6 +327,7 @@ sizeof(struct aiocb)); mutex_enter(&aio->aio_mtx); + KASSERT(aio->curjob == a_job); aio->curjob = NULL; /* Decrease a reference counter, if there is a LIO structure */