From owner-cvs-src-old@FreeBSD.ORG Sat Feb 28 10:28:00 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AF761065670 for ; Sat, 28 Feb 2009 10:28:00 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 781148FC13 for ; Sat, 28 Feb 2009 10:28:00 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1SAS00s064764 for ; Sat, 28 Feb 2009 10:28:00 GMT (envelope-from trasz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1SAS03c064761 for cvs-src-old@freebsd.org; Sat, 28 Feb 2009 10:28:00 GMT (envelope-from trasz@repoman.freebsd.org) Message-Id: <200902281028.n1SAS03c064761@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to trasz@repoman.freebsd.org using -f From: Edward Tomasz Napierala Date: Sat, 28 Feb 2009 10:27:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/cam cam_sim.c cam_sim.h cam_xpt.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 10:28:01 -0000 trasz 2009-02-28 10:27:46 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/cam cam_sim.c cam_sim.h cam_xpt.c Log: SVN rev 189145 on 2009-02-28 10:27:46Z by trasz MFC r186185: Add SIM refcounting. This is slightly different from what DragonFly does - in DragonFly, it's cam_sim_release() what actually frees the SIM; cam_sim_free does nothing more than calling cam_sim_release(). Here, we drain in cam_sim_free, waiting for refcount to drop to zero. We cannot do the same think DragonFly does, because after cam_sim_free returns, client would destroy the sim->mtx, and CAM would trip over an initialized mutex. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Revision Changes Path 1.11.2.1 +29 -0 src/sys/cam/cam_sim.c 1.8.2.1 +3 -0 src/sys/cam/cam_sim.h 1.190.2.8 +2 -0 src/sys/cam/cam_xpt.c