Only touch bufpool whilst in splbio(). (That should be the case

already, but this makes it explicit and safer in the case where
that changes for some reason.)
This commit is contained in:
oster 2004-11-24 13:42:36 +00:00
parent 1279f7fbb6
commit fc7a4ed42c

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_diskqueue.c,v 1.35 2004/03/23 02:34:10 oster Exp $ */
/* $NetBSD: rf_diskqueue.c,v 1.36 2004/11/24 13:42:36 oster 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.35 2004/03/23 02:34:10 oster Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.36 2004/11/24 13:42:36 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@ -485,6 +485,10 @@ rf_CreateDiskQueueData(RF_IoType_t typ, RF_SectorNum_t ssect,
void
rf_FreeDiskQueueData(RF_DiskQueueData_t *p)
{
int s;
s = splbio();
pool_put(&bufpool, p->bp);
splx(s);
pool_put(&rf_pools.dqd, p);
}