Date: Thu, 4 Jan 2007 17:39:17 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/md md.c Message-ID: <200701041739.l04HdHSO079990@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701041739.l04HdHSO079990>
