Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 10:27:46 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/cam cam_sim.c cam_sim.h cam_xpt.c
Message-ID:  <200902281028.n1SAS03c064761@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902281028.n1SAS03c064761>