metaslab_group_preload() could deadlock
zfs - Zettabyte File System
I noticed that metaslab_group_preload() grabs the mg_lock and then later tries to grab the metaslab lock. This lock ordering may lead to a deadlock since other consumers of the mg_lock will grab the metaslab lock first.
Updated by Electric Monk over 5 years ago
- Status changed from Resolved to Closed
commit 30beaff42d8240ebf5386e8b7a14e3d137a1631f Author: George Wilson <email@example.com> Date: 2014-06-12T23:29:11.000Z 4756 metaslab_group_preload() could deadlock Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Christopher Siden <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Saso Kiselkov <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>