Subject: Re: kern/25279: NFS read doesn't update atime
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 06/29/2005 09:35:12
--gE7i1rD7pdK0Ng3j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 29, 2005 at 09:42:41AM +0900, YAMAMOTO Takashi wrote:
> > ok, I busted that when I did the UBC stuff then.
> > it was not my intent to protect anything with the global lock.
> > it would be good for us to avoid making this situation worse by
> > adding more usages that are protected only by the global lock.
> >=20
> > -Chuck
>=20
> then i think it's appropriate to introduce a small lock in ufs inode.
> protecting it by VOP_LOCK is difficult because of
> the locking order constraint you mentioned.

I'd say use the existing spin lock. You're only setting a flag, so you=20
don't need a lockmgr lock.

Take care,

Bill

--gE7i1rD7pdK0Ng3j
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCws3AWz+3JHUci9cRAggPAKCNxUqBkiEKjdP+yUnjBAlHwVbpFwCfUFE7
bz8quNb13mhd+2x/mgailOs=
=GbbB
-----END PGP SIGNATURE-----

--gE7i1rD7pdK0Ng3j--