diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-02 01:33:58 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-02 01:33:58 +0000 |
commit | f781d3bcd838d60368133bf54ee4c6771724fd19 (patch) | |
tree | d8505174a0c396b76e02a0d10908bc83d33a5d21 /sys/dev/ic/cissvar.h | |
parent | 9432f16eb35bbe9fa8fac3e7af067cb4551114d7 (diff) |
protect the ccb free queue with its own mutex
Diffstat (limited to 'sys/dev/ic/cissvar.h')
-rw-r--r-- | sys/dev/ic/cissvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/cissvar.h b/sys/dev/ic/cissvar.h index 459ee0eeebe..049c9ff9983 100644 --- a/sys/dev/ic/cissvar.h +++ b/sys/dev/ic/cissvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cissvar.h,v 1.10 2010/06/02 01:27:20 dlg Exp $ */ +/* $OpenBSD: cissvar.h,v 1.11 2010/06/02 01:33:57 dlg Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -41,6 +41,7 @@ struct ciss_softc { #define CISS_BIO 0x0001 int ccblen, maxcmd, maxsg, nbus, ndrives, maxunits; ciss_queue_head sc_free_ccb; + struct mutex sc_free_ccb_mtx; bus_space_tag_t iot; bus_space_handle_t ioh, cfg_ioh; |