Module Name: src
Committed By: mrg
Date: Tue Dec 14 00:46:43 UTC 2021
Modified Files:
src/sys/dev/raidframe: rf_diskqueue.c
Log Message:
call buf_destroy() after buf_init(). hopefully fixes the lockdebug
problem shown here:
http://mail-index.netbsd.org/tech-kern/2021/12/10/msg027851.html
but seems unlikely to fix the original problem.
tested on i386/anita. ok oster@
XXX: pullup-9 (netbsd-8 uses old APIs.)
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/raidframe/rf_diskqueue.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/dev/raidframe/rf_diskqueue.c
diff -u src/sys/dev/raidframe/rf_diskqueue.c:1.62 src/sys/dev/raidframe/rf_diskqueue.c:1.63
--- src/sys/dev/raidframe/rf_diskqueue.c:1.62 Tue Jul 27 03:01:48 2021
+++ src/sys/dev/raidframe/rf_diskqueue.c Tue Dec 14 00:46:43 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_diskqueue.c,v 1.62 2021/07/27 03:01:48 oster Exp $ */
+/* $NetBSD: rf_diskqueue.c,v 1.63 2021/12/14 00:46:43 mrg Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -66,7 +66,7 @@
****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.62 2021/07/27 03:01:48 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.63 2021/12/14 00:46:43 mrg Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -416,6 +416,9 @@ rf_CreateDiskQueueData(RF_IoType_t typ,
void
rf_FreeDiskQueueData(RF_DiskQueueData_t *p)
{
+
+ buf_destroy(p->bp);
+
pool_put(&p->raidPtr->pools.bufio, p->bp);
pool_put(&p->raidPtr->pools.dqd, p);
}