svn commit: r205231 - in
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Apr 18 18:04:05 UTC 2010
On Tue, Mar 16, 2010 at 10:17:22PM +0000, Kip Macy wrote:
> Author: kmacy
> Date: Tue Mar 16 22:17:21 2010
> New Revision: 205231
> URL: http://svn.freebsd.org/changeset/base/205231
>
> Log:
> - reduce contention by breaking up ARC state locks in to 16 for data
> and 16 for metadata
> - export L2ARC tunables as sysctls
> - add several kstats to track L2ARC state more precisely
> - avoid holding a contended lock when atomically incrementing a
> contended counter (no lock protection needed for atomics)
[...]
> @@ -2505,6 +2731,7 @@ arc_read(zio_t *pio, spa_t *spa, blkptr_
> uint32_t *arc_flags, const zbookmark_t *zb)
> {
> int err;
> + arc_buf_hdr_t *hdr = pbuf->b_hdr;
>
> ASSERT(!refcount_is_zero(&pbuf->b_hdr->b_refcnt));
> ASSERT3U((char *)bp - (char *)pbuf->b_data, <, pbuf->b_hdr->b_size);
> @@ -2513,8 +2740,8 @@ arc_read(zio_t *pio, spa_t *spa, blkptr_
> err = arc_read_nolock(pio, spa, bp, done, private, priority,
> zio_flags, arc_flags, zb);
>
> + ASSERT3P(hdr, ==, pbuf->b_hdr);
> rw_exit(&pbuf->b_lock);
> -
> return (err);
> }
[...]
This commit reverted my fix, which I committed in r204804.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100418/9341f7ac/attachment.pgp
More information about the svn-src-all
mailing list