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

Konstantin Belousov kib at FreeBSD.org
Thu Jan 4 09:39:17 PST 2007


kib         2007-01-04 17:39:17 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/dev/md           md.c 
  Log:
  MFC of rev. 1.164:
  
  - Conditionally acquire Giant in mdstart_vnode(), mdcreate_vnode(), and
    mddestroy() only if the file is from a non-MPSAFE fs.
  There, to accommodate for the vn_open() difference with HEAD, use
  VFS_LOCK_GIANT after vn_open (since vn_open(..., -1) assumes caller is not
  MP-safe).
  - No longer unconditionally hold Giant in the md kthread for vnode-backed
    kthreads.
  - Improve the handling of the thread exit race when destroying an md
    device.
  
  No objections from:     jhb
  
  Revision   Changes    Path
  1.153.2.7  +22 -28    src/sys/dev/md/md.c


More information about the cvs-src mailing list