HomeFreeBSD

Fix invalid locking order in rename operation

Description

Fix invalid locking order in rename operation

This commit should prevent a deadlock on dp_config_rwlock when
running zfs rename by ensuring zvol_rename_minors() is not
called under this lock.

Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2652.
Closes #2525.

Details

Provenance
Stanislav Seletskiy <s.seletskiy@gmail.com>Authored on Sep 3 2014, 9:41 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 4 2014, 4:50 PM
Parents
rG4f6a14798d43: Import zfs pools after cryptsetup
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2078f21015b1: Fix invalid locking order in rename operation (authored by Stanislav Seletskiy <s.seletskiy@gmail.com>).Sep 4 2014, 4:50 PM