Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2015 15:47:12 +0200
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        Konstantin Belousov <kib@FreeBSD.org>
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>
In-Reply-To: <201507111121.t6BBLvaF022898@repo.freebsd.org>
References:  <201507111121.t6BBLvaF022898@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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