From owner-cvs-all@FreeBSD.ORG Fri Dec 19 10:34:33 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA0A116A4CE; Fri, 19 Dec 2003 10:34:33 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 447D443D31; Fri, 19 Dec 2003 10:34:31 -0800 (PST) (envelope-from gibbs@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBJIYV0B077414; Fri, 19 Dec 2003 10:34:31 -0800 (PST) (envelope-from gibbs@repoman.freebsd.org) Received: (from gibbs@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBJIYVao077413; Fri, 19 Dec 2003 10:34:31 -0800 (PST) (envelope-from gibbs) Message-Id: <200312191834.hBJIYVao077413@repoman.freebsd.org> From: "Justin T. Gibbs" Date: Fri, 19 Dec 2003 10:34:31 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/aic7xxx aic_osm_lib.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 18:34:33 -0000 gibbs 2003/12/19 10:34:31 PST FreeBSD src repository Modified files: sys/dev/aic7xxx aic_osm_lib.c Log: Move all of the recovery thread routines next to each other. Correct the recovery thread's loop so that it will terminate properly on shutdown. We also clear the recovery_thread proc pointer so that any additional calls to aic_terminate_recovery_thread() will not attempt to kill a thread that doesn't exist. Lastly, code the loop so that termination will still be successfull even if the termination request occurs just prior to us entering the loop or while the recovery thread is off recovering commands. Revision Changes Path 1.2 +33 -26 src/sys/dev/aic7xxx/aic_osm_lib.c