Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 13:45:03 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        current@freebsd.org
Subject:   I hates leases to pieces
Message-ID:  <199512072045.NAA05505@phaeton.artisoft.com>

next in thread | raw e-mail | index | archive | help
Now for page 2 on leases:

Block profiling shows that lock manipulation is a significant fraction
of the time in many types of access.

Why aren't vp's allowed to be locked when calling lease checking?

There doesn't seem to be an explicit reason for this, and it complicates
the code by changing:

	ndinit(&nd, ...|LOCKLEAF, ...);
	LEASE_CHECK(nd.vp, ...);

Into:

	ndinit(&nd, ..., ...);
	LEASE_CHECK(nd.vp, ...);
	VOP_LOCK(nd.vp);

And of course namei() will have locked the leaf and explicitly calls
VOP_UNLOCK().


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512072045.NAA05505>