diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-04-17 00:51:14 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-04-17 00:51:14 +0000 |
commit | c1ab0af8de28ba128f274eb08a21f54d8d23c62c (patch) | |
tree | e642be2374b4eda78f8f8e19baf625334ddfd9b2 /sys/scsi/scsi_base.c | |
parent | d2c5b5c3330c17346250358a37749bfadab71a50 (diff) |
use the iopools mutex to protect the semaphore wrapping the openings
runqueue. less is more sometimes.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r-- | sys/scsi/scsi_base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 39de705e8b7..8efa68b2f0d 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.170 2010/04/16 09:51:30 dlg Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.171 2010/04/17 00:51:13 dlg Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -478,7 +478,7 @@ scsi_xsh_runqueue(struct scsi_link *link) struct scsi_runq_entry *entry; int runq; - if (!scsi_sem_enter(&link->mtx, &link->running)) + if (!scsi_sem_enter(&link->pool->mtx, &link->running)) return; do { runq = 0; @@ -498,7 +498,7 @@ scsi_xsh_runqueue(struct scsi_link *link) if (runq) scsi_ioh_runqueue(link->pool); - } while (!scsi_sem_leave(&link->mtx, &link->running)); + } while (!scsi_sem_leave(&link->pool->mtx, &link->running)); } void |