summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2021-12-14 00:46:43 +0000
committermrg <mrg@NetBSD.org>2021-12-14 00:46:43 +0000
commit761b03c19bfee0ec02b12f1fe4de782c9513504c (patch)
tree4e09b41058d3932d186847c22b734e2b5bddeee0 /sys/dev/raidframe
parent031e25f2310a61d7649651cf26bbe81cb294f679 (diff)
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.)
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_diskqueue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_diskqueue.c b/sys/dev/raidframe/rf_diskqueue.c
index 06230097f55..2f8f56b47a1 100644
--- a/sys/dev/raidframe/rf_diskqueue.c
+++ b/sys/dev/raidframe/rf_diskqueue.c
@@ -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, RF_SectorNum_t ssect,
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);
}