From owner-svn-src-all@freebsd.org Sat Jul 11 13:47:18 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2101A99812E; Sat, 11 Jul 2015 13:47:18 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98B221EB8; Sat, 11 Jul 2015 13:47:17 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by labgy5 with SMTP id gy5so127083905lab.2; Sat, 11 Jul 2015 06:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=oeZDdA5+OMgQ4I4reLfgHvwjIFR6MIUsnadq+RjrecA=; b=Gy+zDc7I4WtWPsfNlPereDqJ+e717fMAsttsDbGdqe5gs13KRDfsw86IYJWtWegwrn v0Stlv7hLHSDeBYAzb1fF0XH1SHc03iBC4NJfxzMvZ4yWo5PobEzJed4XUaay/D6Dx6x Xnf9WJkiygAQ3bKkx6DxiAM6jkiOIHo2eJoR+sTY+3YNOym7XGBcqBcmH9+By2Jrk5z4 2cgWjcUIibewFU3pxzp2TffJ+S5ppQqHmIln279fgfni/sIvHI3bdGNdTnuAMTiy+ERO g3cJcfowY0LcfnAj3uenzXE5gZ8B1CyzFOK1et3rP3ZN6MH9oCqOI9Zv4LmXLgErayOI ZbYQ== X-Received: by 10.152.5.65 with SMTP id q1mr24246821laq.110.1436622435773; Sat, 11 Jul 2015 06:47:15 -0700 (PDT) Received: from brick ([46.229.149.194]) by smtp.gmail.com with ESMTPSA id pw1sm3094354lac.17.2015.07.11.06.47.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jul 2015 06:47:14 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 11 Jul 2015 15:47:12 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Konstantin Belousov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285384 - head/sys/kern Message-ID: <20150711134712.GA1142@brick> Mail-Followup-To: Konstantin Belousov , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201507111121.t6BBLvaF022898@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201507111121.t6BBLvaF022898@repo.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2015 13:47:18 -0000 On 0711T1121, Konstantin Belousov wrote: > Author: kib > Date: Sat Jul 11 11:21:56 2015 > New Revision: 285384 > URL: https://svnweb.freebsd.org/changeset/base/285384 > > Log: > Do not allow creation of the dirty buffers for the dead buffer > objects, i.e. for buffer objects which vnode was reclaimed. Buffer > cache cannot write such buffers. Return the error and discard the > buffer immediately on write attempt. > > BO_DIRTY now always set during vnode reclamation, since it is used not > only for the INVARIANTS checks. Do allow placement of the clean > buffers on dead bufobj list, otherwise filesystems cannot use bufcache > at all after the devvp reclaim. Note that it also fixes the "dead bo" panic that happens eg after yanking a mounted flash drive.