]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
spa_export_common: refactor common exit points
authorWill Andrews <will@firepipe.net>
Mon, 25 Jan 2021 23:04:11 +0000 (17:04 -0600)
committerGitHub <noreply@github.com>
Mon, 25 Jan 2021 23:04:11 +0000 (15:04 -0800)
commitf4f50a70488ebad3fa96c2fe4142924215733113
tree94fe5f57f7fa5b0b07ed53ab3c3d802533618e33
parent35ac0ed1fd78a820474658f34dd7661af1bf635f
spa_export_common: refactor common exit points

Create a common exit point for spa_export_common (a very long
function), which avoids missing steps on failure.  This work
is helpful for the planned forced pool export changes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Will Andrews <will@firepipe.net>
Closes #11514
module/zfs/spa.c