Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2005 08:01:34 -0500 (EST)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Jeff Roberson <jeff@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_cache.c
Message-ID:  <20050329080112.A54623@mail.chesapeake.net>
In-Reply-To: <200503291259.j2TCx6PJ039962@repoman.freebsd.org>
References:  <200503291259.j2TCx6PJ039962@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Mar 2005, Jeff Roberson wrote:

> jeff        2005-03-29 12:59:06 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             vfs_cache.c
>   Log:
>    - Move the logic that locks and refs the new vnode from vfs_cache_lookup()
>      to cache_lookup().  This allows us to acquire the vnode interlock before
>      dropping the cache lock.  This protects the vnodes identity until we
>      have locked it.
>

Almost forgot, thanks to David Schultz for pointing this race out to me.

>   Sponsored by:   Isilon Systems, Inc.
>
>   Revision  Changes    Path
>   1.96      +33 -35    src/sys/kern/vfs_cache.c
>



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