Don't assert mg_initialized due to device addition race
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
This commit is contained in:
parent
a4bf6baaeb
commit
bcfcde4ea2
|
@ -5105,7 +5105,6 @@ metaslab_group_alloc(metaslab_group_t *mg, zio_alloc_list_t *zal,
|
||||||
int allocator, boolean_t try_hard)
|
int allocator, boolean_t try_hard)
|
||||||
{
|
{
|
||||||
uint64_t offset;
|
uint64_t offset;
|
||||||
ASSERT(mg->mg_initialized);
|
|
||||||
|
|
||||||
offset = metaslab_group_alloc_normal(mg, zal, asize, txg, want_unique,
|
offset = metaslab_group_alloc_normal(mg, zal, asize, txg, want_unique,
|
||||||
dva, d, allocator, try_hard);
|
dva, d, allocator, try_hard);
|
||||||
|
@ -5256,8 +5255,6 @@ top:
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(mg->mg_initialized);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Avoid writing single-copy data to an unhealthy,
|
* Avoid writing single-copy data to an unhealthy,
|
||||||
* non-redundant vdev, unless we've already tried all
|
* non-redundant vdev, unless we've already tried all
|
||||||
|
|
Loading…
Reference in New Issue