summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>2003-02-05 21:38:38 +0000
committerpk <pk@NetBSD.org>2003-02-05 21:38:38 +0000
commit338f31f581b40d12e472e5c29223dfca09288dc1 (patch)
treec2b42af6bf7323dfe9bf15936a6b11f3e40af2be /sys/dev/ata
parent09843e3b7e65392c6f7a1265fce8e27b17c75bb9 (diff)
Make the buffer cache code MP-safe.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata_raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata_raid.c b/sys/dev/ata/ata_raid.c
index 4a79deb58f9..d9ba4896f3b 100644
--- a/sys/dev/ata/ata_raid.c
+++ b/sys/dev/ata/ata_raid.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ata_raid.c,v 1.1 2003/01/27 18:21:27 thorpej Exp $ */
+/* $NetBSD: ata_raid.c,v 1.2 2003/02/05 21:38:40 pk Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -296,6 +296,7 @@ ata_raid_config_block_rw(struct vnode *vp, daddr_t blkno, void *buf,
int error;
bp = pool_get(&bufpool, PR_WAITOK);
+ simple_lock_init(&bp->b_interlock);
LIST_INIT(&bp->b_dep);
bp->b_vp = vp;