From e0df1521bce343c7d86d0a0b68c322150e739030 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 21 Jun 2010 11:43:39 +0000 Subject: protect the ccb free list with its own mutex. --- sys/dev/ic/amivar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/amivar.h') diff --git a/sys/dev/ic/amivar.h b/sys/dev/ic/amivar.h index 11008927a6e..f7a531dbc5c 100644 --- a/sys/dev/ic/amivar.h +++ b/sys/dev/ic/amivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amivar.h,v 1.55 2010/06/04 06:52:58 dlg Exp $ */ +/* $OpenBSD: amivar.h,v 1.56 2010/06/21 11:43:38 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -112,7 +112,9 @@ struct ami_softc { paddr_t sc_mbox_pa; struct ami_ccb *sc_ccbs; - struct ami_ccb_list sc_ccb_freeq, sc_ccb_preq, sc_ccb_runq; + struct ami_ccb_list sc_ccb_freeq; + struct mutex sc_ccb_freeq_mtx; + struct ami_ccb_list sc_ccb_preq, sc_ccb_runq; struct ami_mem *sc_ccbmem_am; -- cgit v1.2.3