From owner-svn-src-head@FreeBSD.ORG Thu Dec 25 21:17:53 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51421D49 for ; Thu, 25 Dec 2014 21:17:53 +0000 (UTC) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FA873490 for ; Thu, 25 Dec 2014 21:17:52 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id i17so6858645qcy.32 for ; Thu, 25 Dec 2014 13:17:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FrDFeI9AsxgBKMjRZlY9m8NxRIzRDGbZWd3onUOSQcU=; b=BbaWgd6kV9KwYPsqymfrcnKy8uojHtnMesblQAec9PZtMK7Cf7wJ7t3TTw0hOpwOpl HuW0ZVlpZw8mHdhzSeyZ/XHl+Y7IMzn0pRf0KGLK8NA8MUMd4zGHJiABkixMXNr9M2I/ N8giP1BQjynzkCZjDcQUgc38fYA8NTwVq2E6IuC9FTdUFH6mOCDeV697BStc70WDWmfM fyOnH4KpEjNNK0GO3N6qLXTKs6+Idz38qjOVUjFao3h2RYKFtwv2w6zcDifajATUnLpq HJ1dPqSRtNYoi7WV/Eh8VurQRlFAChvczcVIjC9LtL5vMeZUVB8vOFQeENEihzIzln2e dylA== X-Gm-Message-State: ALoCoQk/9KVH9Os1jUL1HlBJM6+hvbcXWR8U4uOyZQatoU3Dtb29+vGZM9E61QN86rysBMWErQeA MIME-Version: 1.0 X-Received: by 10.224.14.66 with SMTP id f2mr54031664qaa.81.1419541840728; Thu, 25 Dec 2014 13:10:40 -0800 (PST) Received: by 10.140.88.103 with HTTP; Thu, 25 Dec 2014 13:10:40 -0800 (PST) In-Reply-To: <201412230931.sBN9VPMK017968@svn.freebsd.org> References: <201412230931.sBN9VPMK017968@svn.freebsd.org> Date: Thu, 25 Dec 2014 15:10:40 -0600 Message-ID: Subject: Re: svn commit: r276123 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs From: Will Andrews To: Steven Hartland Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2014 21:17:53 -0000 Why was the original condition there? It may not be documented in a commenf, but presumably there is a reason. Did you ask the original author of the code in question? --Will. On Tuesday, December 23, 2014, Steven Hartland wrote: > Author: smh > Date: Tue Dec 23 09:31:24 2014 > New Revision: 276123 > URL: https://svnweb.freebsd.org/changeset/base/276123 > > Log: > Always sync the global ZFS config cache to reflect the new mosconfig > > This fixes out of date zpool.cache for root pools, which can cause issues > such as confusion of zdb etc. > > MFC after: 1 month > > Modified: > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c > > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c > > ============================================================================== > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c > Tue Dec 23 08:51:30 2014 (r276122) > +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c > Tue Dec 23 09:31:24 2014 (r276123) > @@ -536,8 +536,7 @@ spa_config_update(spa_t *spa, int what) > /* > * Update the global config cache to reflect the new mosconfig. > */ > - if (!spa->spa_is_root) > - spa_config_sync(spa, B_FALSE, what != > SPA_CONFIG_UPDATE_POOL); > + spa_config_sync(spa, B_FALSE, what != SPA_CONFIG_UPDATE_POOL); > > if (what == SPA_CONFIG_UPDATE_POOL) > spa_config_update(spa, SPA_CONFIG_UPDATE_VDEVS); > >