]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC of rev. 1.164:
authorkib <kib@FreeBSD.org>
Thu, 4 Jan 2007 17:39:17 +0000 (17:39 +0000)
committerkib <kib@FreeBSD.org>
Thu, 4 Jan 2007 17:39:17 +0000 (17:39 +0000)
commit9b16f51df50e3c2274eb6d73f8091d274ee5358a
tree61cae0b3965c81fcb04dfe1429ff7f8d344248e8
parent2223ed864b339633ab5fce69cf0c72bb149c3f43
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
sys/dev/md/md.c