Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Apr 2010 12:20:33 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206792 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201004181220.o3ICKX41076488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Apr 18 12:20:33 2010
New Revision: 206792
URL: http://svn.freebsd.org/changeset/base/206792

Log:
  Set ARC_L2_WRITING on L2ARC header creation.
  
  Obtained from:	OpenSolaris

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Sun Apr 18 10:42:42 2010	(r206791)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Sun Apr 18 12:20:33 2010	(r206792)
@@ -4562,6 +4562,7 @@ l2arc_write_buffers(spa_t *spa, l2arc_de
 			hdrl2->b_dev = dev;
 			hdrl2->b_daddr = dev->l2ad_hand;
 
+			ab->b_flags |= ARC_L2_WRITING;
 			ab->b_l2hdr = hdrl2;
 			list_insert_head(dev->l2ad_buflist, ab);
 			buf_data = ab->b_buf->b_data;



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