From owner-svn-src-head@freebsd.org Tue Jun 30 05:54:51 2015 Return-Path: Delivered-To: svn-src-head@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 80BC2990D71; Tue, 30 Jun 2015 05:54:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBEDD1DB1; Tue, 30 Jun 2015 05:54:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t5U5sfsX017487 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 30 Jun 2015 08:54:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t5U5sfsX017487 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t5U5sfql017486; Tue, 30 Jun 2015 08:54:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 30 Jun 2015 08:54:41 +0300 From: Konstantin Belousov To: Julian Elischer Cc: Ed Schouten , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r284887 - in head/sys: kern sys ufs/ffs Message-ID: <20150630055441.GY2080@kib.kiev.ua> References: <201506270944.t5R9iEjO053344@svn.freebsd.org> <55920AC2.3060809@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55920AC2.3060809@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 30 Jun 2015 05:54:51 -0000 On Tue, Jun 30, 2015 at 11:19:30AM +0800, Julian Elischer wrote: > On 6/29/15 8:19 PM, Ed Schouten wrote: > > Hi Kostik, > > > > 2015-06-27 11:44 GMT+02:00 Konstantin Belousov : > >> @@ -2056,6 +2072,8 @@ ffs_bufwrite(struct buf *bp) > >> if (bp->b_vflags & BV_BKGRDINPROG) > >> panic("bufwrite: still writing"); > >> } > >> + if ((bp->b_vflags & BV_BKGRDERR) != 0) > >> + bp->b_vflags &= ~BV_BKGRDERR; > >> BO_UNLOCK(bp->b_bufobj); > >> > >> /* > > This if-statement could be removed, right? The bit could just be > > cleared unconditionally. > true but it replaces a read and write with just a read in the case of > no change. Th cache line is dirty already, test before the rwm operation would not give any optimizations.