diff options
author | Brian Behlendorf <[email protected]> | 2013-01-17 10:05:42 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-17 11:24:20 -0800 |
commit | 7973e464de4f93b6e669f7f04a316e013767224e (patch) | |
tree | f1c1911ebd701749d2b3dc3dfaeebe9cc3edf386 /module/zfs/dmu_traverse.c | |
parent | 7b3e34ba5a7ee8d0fda44d214f6f11eb16cdb26f (diff) |
Revert "Revert "Fix unlink/xattr deadlock""
This reverts commit 53c7411919a64d6f0889aa0d6974610f6cd35744
effectively reinstating the asynchronous xattr cleanup code.
These Linux changes were reverted because after testing
and careful contemplation I was convinced that due to the
89260a1c8851ce05ea04b23606ba438b271d890 commit they were no
longer required.
Unfortunately, the deadlock described in #1176 was a case
which wasn't considered. At mount zfs_unlinked_drain() can
occur which will unlink a list of znodes in effectively a
random order which isn't safe. The only reason it was safe
to originally revert this change was the we could guarantee
that the VFS would always prune the xattr leaves before the
parents.
Therefore, until we can cleanly resolve this deadlock for
all cases we need to keep this change in spite of the xattr
unlink performance penalty associated with it.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1176
Issue #457
Diffstat (limited to 'module/zfs/dmu_traverse.c')
0 files changed, 0 insertions, 0 deletions