g_disk_done() vs a destroyed disk

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Jan 28 13:23:44 UTC 2017


--------
In message <8de79017-f0b0-c86a-93c5-65be4d97b21c at FreeBSD.org>, Andriy Gapon 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 at 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.


More information about the freebsd-geom mailing list