diff options
author | Matthew Ahrens <mahrens@delphix.com> | 2014-10-05 17:11:24 -0800 |
---|---|---|
committer | Christopher Siden <chris@delphix.com> | 2014-10-05 18:11:24 -0700 |
commit | 6f834bc197c703a6568554c889157fb345bac079 (patch) | |
tree | 82d1fd818772b2a7cc41a038985a4514c1718100 /usr/src/cmd | |
parent | 306f6ed40fde655ff0aa12ed2124ef12881d66b0 (diff) | |
download | illumos-joyent-6f834bc197c703a6568554c889157fb345bac079.tar.gz |
5176 lock contention on godfather zio
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Alex Reece <alex.reece@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Richard Elling <richard.elling@gmail.com>
Reviewed by: Bayard Bell <Bayard.Bell@nexenta.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/zdb/zdb.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/src/cmd/zdb/zdb.c b/usr/src/cmd/zdb/zdb.c index 2def6241b7..c886a9dc72 100644 --- a/usr/src/cmd/zdb/zdb.c +++ b/usr/src/cmd/zdb/zdb.c @@ -2565,10 +2565,12 @@ dump_block_stats(spa_t *spa) * all async I/Os to complete. */ if (dump_opt['c']) { - (void) zio_wait(spa->spa_async_zio_root); - spa->spa_async_zio_root = zio_root(spa, NULL, NULL, - ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE | - ZIO_FLAG_GODFATHER); + for (int i = 0; i < max_ncpus; i++) { + (void) zio_wait(spa->spa_async_zio_root[i]); + spa->spa_async_zio_root[i] = zio_root(spa, NULL, NULL, + ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE | + ZIO_FLAG_GODFATHER); + } } if (zcb.zcb_haderrors) { |