cvs commit: src/sys/dev/md md.c

Poul-Henning Kamp phk at FreeBSD.org
Sun Sep 18 23:55:28 PDT 2005


phk         2005-09-19 06:55:27 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/md           md.c 
  Log:
  Fix configuration locking in MD.
  
  Remove  md_mtx.
  
  Remove GIANT from the mdctl device driver and avoid DROP_GIANT,
  PICKUP_GIANT and geom events since we can call into GEOM directly
  now.
  
  Pick up Giant around vn_close().
  
  Apply an exclusive sx around mdctls ioctl and preloading to protect
  lists etc..
  
  Don't initialize our lock (md_mtx or md_sx) from a
  SYSINIT when there is a perfectly good pair of _fini/_init
  functions to do it from.
  
  Prune any final fractional sector from the mediasize to
  keep GEOM happy.
  
  Cleanups:
  
  Unify MDIOVERSION check in (x)mdctlioctl()
  
  Add pointer to start() routine to softc to eliminate a switch{}
  
  Inline guts of mddetach().
  
  Always pass error pointer to mdnew(), simplify implementation.
  
  Revision  Changes    Path
  1.157     +80 -116   src/sys/dev/md/md.c


More information about the cvs-src mailing list