diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-12 23:33:58 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-12 23:33:58 +0000 |
commit | 17dabbf332d06a8ff557075a4ef65f57c8e92390 (patch) | |
tree | 834b999fe2e031672b3a6a75ff9e5e70dc50dead /sys/scsi/ss.c | |
parent | 1927861651d7ea620060a826a41e5dd4481324e2 (diff) |
bring sd.c r1.180 over to the other drivers now using the antisemaphore,
ie, dont clear the WAITING flag when restarting the xxstart loops.
Diffstat (limited to 'sys/scsi/ss.c')
-rw-r--r-- | sys/scsi/ss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c index 60095431053..17b28bde3a3 100644 --- a/sys/scsi/ss.c +++ b/sys/scsi/ss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ss.c,v 1.67 2010/01/11 08:56:17 krw Exp $ */ +/* $OpenBSD: ss.c,v 1.68 2010/01/12 23:33:57 dlg Exp $ */ /* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */ /* @@ -680,8 +680,8 @@ ssstart(v) return; } mtx_leave(&ss->sc_start_mtx); -restart: CLR(ss->flags, SSF_WAITING); +restart: while (!ISSET(ss->flags, SSF_WAITING) && (bp = ss_buf_dequeue(ss)) != NULL) { |