diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-21 11:43:39 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-21 11:43:39 +0000 |
commit | e0df1521bce343c7d86d0a0b68c322150e739030 (patch) | |
tree | f446d53b2fc713e813929fabc56ee2bcc9447025 /sys/dev/ic/amivar.h | |
parent | c70269f0cea581761d28431ed0cd90c3a6a58b29 (diff) |
protect the ccb free list with its own mutex.
Diffstat (limited to 'sys/dev/ic/amivar.h')
-rw-r--r-- | sys/dev/ic/amivar.h | 6 |
1 files changed, 4 insertions, 2 deletions
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; |