From owner-freebsd-arch@freebsd.org Fri Mar 23 10:47:42 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BE93F5E928; Fri, 23 Mar 2018 10:47:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id EEF9B6CDD9; Fri, 23 Mar 2018 10:47:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.55.3]) by phk.freebsd.dk (Postfix) with ESMTP id C993C273B0; Fri, 23 Mar 2018 10:47:34 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id w2N9U4NX000890 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 23 Mar 2018 09:30:04 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id w2N9U3gJ000889; Fri, 23 Mar 2018 09:30:03 GMT (envelope-from phk) To: Andriy Gapon cc: Warner Losh , "freebsd-arch@freebsd.org" , freebsd-geom@freebsd.org Subject: Re: geom->access problem and workaround In-reply-to: <5e416eb6-0e79-1419-f09a-eb747215dc28@FreeBSD.org> From: "Poul-Henning Kamp" References: <809d9254-ee56-59d8-69a4-08838e985cea@FreeBSD.org> <56619.1520878022@critter.freebsd.dk> <5e416eb6-0e79-1419-f09a-eb747215dc28@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <887.1521797403.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Mar 2018 09:30:03 +0000 Message-ID: <888.1521797403@critter.freebsd.dk> X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 10:47:42 -0000 -------- In message <5e416eb6-0e79-1419-f09a-eb747215dc28@FreeBSD.org>, Andriy Gapo= n writes: >On 12/03/2018 20:07, Poul-Henning Kamp wrote: >> If we want to have an architectural sound way to do slow operations >> before any "user-I/O" is initiated, the right way to do so is to >> define new BIO_OPEN and BIO_CLOSE operation, and insist via asserts >> than all BIO_{READ|WRITE|DELETE} are wrapped in these. >What do you think? I don't see that changing anything... GEOM rests on a set of assumptions, if you violate them, you get panics. -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .