Ryan Moeller dce3176349
Avoid taking global lock to destroy zfsdev state
We have exclusive access to our zfsdev state object in this section
until it is invalidated by setting zs_minor to -1, so we can destroy
the state without taking a lock if we do the invalidation last, after
a member to ensure correct ordering.

While here, strengthen the assertions that zs_minor is valid when we
enter.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #11751
2021-04-02 11:09:05 -07:00
..
2021-01-26 16:12:10 -08:00
2021-01-20 21:27:30 -08:00
2021-01-26 16:12:26 -08:00
2020-09-02 09:42:12 -07:00
2020-06-10 09:24:15 -07:00
2020-10-02 17:44:10 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00