NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: NetBSD 9.2 (STABLE) kernel hangs without panic or ddb



i wonder if this is lack of buf_destroy() in rf_FreeDiskQueueData(),
to match the buf_init() in rf_CreateDiskQueueData().

can you try this patch?


.mrg.


Index: rf_diskqueue.c
===================================================================
RCS file: /cvsroot/src/sys/dev/raidframe/rf_diskqueue.c,v
retrieving revision 1.55.4.1
diff -p -u -r1.55.4.1 rf_diskqueue.c
--- rf_diskqueue.c	19 Oct 2021 10:55:15 -0000	1.55.4.1
+++ rf_diskqueue.c	13 Dec 2021 04:45:15 -0000
@@ -413,6 +413,9 @@ rf_CreateDiskQueueData(RF_IoType_t typ, 
 void
 rf_FreeDiskQueueData(RF_DiskQueueData_t *p)
 {
+
+	buf_destroy(p->bp);
+
 	pool_put(&rf_pools.bufio, p->bp);
 	pool_put(&rf_pools.dqd, p);
 }


Home | Main Index | Thread Index | Old Index