Is it possible to employ epoch to simplify managing prison lifecycle

From: Zhenlei Huang <zlei.huang_at_gmail.com>
Date: Fri, 16 Dec 2022 14:41:39 UTC
Hi,

While hacking `sys/kern/kern_jail.c` I got lost.

There're lots of ref / unref and flags to prevent visit invalid prison while
 concurrent modification is possible and some refs looks weird.

Is it possible to employ epoch(9) to simplify managing of prison lifecycle ?


Best regards,
Zhenlei