]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix overly broad spa config lock
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 27 Feb 2019 18:49:22 +0000 (10:49 -0800)
committerGitHub <noreply@github.com>
Wed, 27 Feb 2019 18:49:22 +0000 (10:49 -0800)
commit6af7ba417eb429413f9f24cd2704a302d766d9b4
tree57b1584702c63f2e1bb13a785339eed22fa756d5
parentc568ab8d99d88b69f54159cd771cb9b20784174e
Fix overly broad spa config lock

The spa_txg_history_init_io() and spa_txg_history_fini_io() were
mistakenly taking SCL_ALL when only SCL_CONFIG is required to
access the vdev stats.  This could result in a deadlock which
was observed when running ztest.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8445
module/zfs/spa_stats.c
module/zfs/vdev.c