Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern aio_worker: add an assertion
details: https://anonhg.NetBSD.org/src/rev/f562096bf0a5
branches: trunk
changeset: 759837:f562096bf0a5
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Dec 17 22:05:36 2010 +0000
description:
aio_worker: add an assertion
diffstat:
sys/kern/sys_aio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 48caff719879 -r f562096bf0a5 sys/kern/sys_aio.c
--- a/sys/kern/sys_aio.c Fri Dec 17 22:04:42 2010 +0000
+++ b/sys/kern/sys_aio.c Fri Dec 17 22:05:36 2010 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index