Subject: Re: LK_SHARED for VFS_VGET/FHTOVP
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 05/26/2004 09:22:40
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 25, 2004 at 11:52:56PM -0700, Jason Thorpe wrote:
>=20
> On May 25, 2004, at 11:15 PM, Bill Studenmund wrote:
>=20
> >Specifically with using exclusive locks, I think that the vnode system=
=20
> >was
> >fine-grained. Perhaps not the best locking (we can get better=20
> >parallelism,
> >perhaps), but correct. By changing things so we need big-lock, we take=
=20
> >a
> >step back.
>=20
> Why do you think that a shared lock requires use of the Biglock?

Because of the code in question was written assuming an exclusive lock,
not a shared one. ufs_update() for example. Also, currently, it's
documented to get an exclusive lock.

Take care,

Bill

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFAtMRQWz+3JHUci9cRArG3AJ0WPn/7ofh40gE4L5c5s4h5FVtm+gCcCL66
Ksx8QFK7Fdtgd98C6lP33FQ=
=luCO
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--