]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Minor spa portability fixes
authorMatthew Macy <mmacy@freebsd.org>
Mon, 28 Oct 2019 16:51:53 +0000 (09:51 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Oct 2019 16:51:53 +0000 (09:51 -0700)
commit4a22ba5be0aab1480aeac4581025ce6d7ce4b4a1
treec31657ff44848b81ffd57f292362dfde3e93e11a
parent7125a109dcc55628336ff3f58e59e503f4d7694d
Minor spa portability fixes

- FreeBSD's rootpool import code uses spa_config_parse
- Move the zvol_create_minors call out from under the
  spa_namespace_lock in spa_import. It isn't needed and it causes
  a lock order reversal on FreeBSD.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9499
include/sys/spa.h
module/zfs/spa.c