Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 22:32:25 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r192494 - stable/7/sys/kern
Message-ID:  <200905202232.n4KMWPJU046415@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Wed May 20 22:32:25 2009
New Revision: 192494
URL: http://svn.freebsd.org/changeset/base/192494

Log:
  MFC minimal zfs lock ordering for WITNESS
  
  (dnode -> dirty record -> dbuf)

Modified:
  stable/7/sys/kern/subr_witness.c

Modified: stable/7/sys/kern/subr_witness.c
==============================================================================
--- stable/7/sys/kern/subr_witness.c	Wed May 20 22:30:57 2009	(r192493)
+++ stable/7/sys/kern/subr_witness.c	Wed May 20 22:32:25 2009	(r192494)
@@ -397,6 +397,13 @@ static struct witness_order_list_entry o
 	{ "vnode interlock", &lock_class_mtx_sleep },
 	{ NULL, NULL },
 	/*
+	 * ZFS locking
+	 */
+	{ "dn->dn_mtx", &lock_class_sx },
+	{ "dr->dt.di.dr_mtx", &lock_class_sx },
+	{ "db->db_mtx", &lock_class_sx },
+	{ NULL, NULL },
+	/*
 	 * spin locks
 	 */
 #ifdef SMP



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