Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 13:23:40 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-geom@FreeBSD.org
Subject:   Re: g_disk_done() vs a destroyed disk
Message-ID:  <33960.1485609820@critter.freebsd.dk>
In-Reply-To: <8de79017-f0b0-c86a-93c5-65be4d97b21c@FreeBSD.org>
References:  <cba9c9bf-97ad-e3ae-e209-ea91e49b5822@FreeBSD.org> <31395.1485554104@critter.freebsd.dk> <8de79017-f0b0-c86a-93c5-65be4d97b21c@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <8de79017-f0b0-c86a-93c5-65be4d97b21c@FreeBSD.org>, Andriy Gapo=
n wri
tes:

>So, the correct sequence should be:
>- call disk_gone() to prevent new I/O
>- handle all in-flight I/O
>- call disk_destroy()
>Is that right?

exactly!


-- =

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=
.



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