Date: Wed, 17 Nov 2004 07:39:58 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys filedesc.h Message-ID: <200411170739.iAH7dw0I040942@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004-11-17 07:39:58 UTC
FreeBSD src repository
Modified files:
sys/sys filedesc.h
Log:
Split the FILEDESC_LOCK in two variants.
FILEDESC_LOCK_FAST will just grab the interlocking mutex and hold
it. This should be used for simple modifications of a field.
FILEDESC_LOCK holds a (homegrown) sleepable lock which should be used
where sleeping is required.
The homegrown lock will probably be replaced with a generic type of lock
once we have found out how that should look.
Help and reviews by: rwatson
Revision Changes Path
1.65 +57 -8 src/sys/sys/filedesc.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411170739.iAH7dw0I040942>
