From owner-freebsd-commit Fri Aug 4 23:59:27 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id XAA04592 for commit-outgoing; Fri, 4 Aug 1995 23:59:27 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id XAA04577 for cvs-sys-outgoing; Fri, 4 Aug 1995 23:59:24 -0700 Received: (from gibbs@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id XAA04565 ; Fri, 4 Aug 1995 23:59:19 -0700 Date: Fri, 4 Aug 1995 23:59:19 -0700 From: "Justin T. Gibbs" Message-Id: <199508050659.XAA04565@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/dev/aic7xxx aic7xxx.seq Sender: commit-owner@FreeBSD.org Precedence: bulk gibbs 95/08/04 23:59:18 Modified: sys/dev/aic7xxx aic7xxx.seq Log: Fix two race conditions. The first could occur because the original code would continue to reset the SCSIID register while waiting for a selection. This could potentially conflict with a reconnect since a successfull reconnect will also set the SCSIID register. The fix is to use a separate wait loop after starting a selection (as was done a few revisions ago). The second probably never happens, but it was possible for a target to reconnect while there was a pending SCB on the waiting list and not get noticed. The fix was to remove a supurflous check of the scb waiting list.