Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2015 15:28:34 -0700
From:      NGie Cooper <yaneurabeya@gmail.com>
To:        Mark Johnston <markj@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r288280 - head/sys/kern
Message-ID:  <A53FF4CE-9BA1-4214-983E-74ABEFC5A3E8@gmail.com>
In-Reply-To: <201509262226.t8QMQuHh018926@repo.freebsd.org>
References:  <201509262226.t8QMQuHh018926@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Sep 26, 2015, at 15:26, Mark Johnston <markj@FreeBSD.org> wrote:
>=20
> Author: markj
> Date: Sat Sep 26 22:26:55 2015
> New Revision: 288280
> URL: https://svnweb.freebsd.org/changeset/base/288280
>=20
> Log:
>  Remove a check for a condition that is always false by a preceding =
KASSERT
>  that was added in r144704.
>=20
> Modified:
>  head/sys/kern/vfs_subr.c
>=20
> Modified: head/sys/kern/vfs_subr.c
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
> --- head/sys/kern/vfs_subr.c	Sat Sep 26 22:20:30 2015	=
(r288279)
> +++ head/sys/kern/vfs_subr.c	Sat Sep 26 22:26:55 2015	=
(r288280)
> @@ -1429,11 +1429,6 @@ flushbuflist(struct bufv *bufv, int flag
> 		KASSERT(bp->b_bufobj =3D=3D bo,
> 		    ("bp %p wrong b_bufobj %p should be %p",
> 		    bp, bp->b_bufobj, bo));
> -		if (bp->b_bufobj !=3D bo) {	/* XXX: necessary ? */
> -			BUF_UNLOCK(bp);
> -			BO_LOCK(bo);
> -			return (EAGAIN);
> -		}
> 		/*
> 		 * XXX Since there are no node locks for NFS, I
> 		 * believe there is a slight chance that a delayed
>=20

Except the KASSERT gets optimized out with !INVARIANTS. Is this =
if-statement protecting against bad behavior?=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A53FF4CE-9BA1-4214-983E-74ABEFC5A3E8>