diff options
author | Qu Wenruo <wqu@suse.com> | 2025-03-10 08:14:56 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:52 +0300 |
commit | 19e60b2a95f5d6b77d972c7bec35a11e70fd118c (patch) | |
tree | 8ec95f607b4b20824d59ec96df9733cc77e97741 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0aaaf10ae9aef82bf6589ced2510ff4e249cb3af (diff) | |
download | linux-19e60b2a95f5d6b77d972c7bec35a11e70fd118c.tar.xz |
btrfs: add extra warning if delayed iput is added when it's not allowed
Since I have triggered the ASSERT() on the delayed iput too many times,
now is the time to add some extra debug warnings for delayed iput.
All delayed iputs should be queued after all ordered extents finish
their IO and all involved workqueues are flushed.
Thus after the btrfs_run_delayed_iputs() inside close_ctree(), there
should be no more delayed puts added.
So introduce a new BTRFS_FS_STATE_NO_DELAYED_IPUT, set after the above
mentioned timing. And all btrfs_add_delayed_iput() will check that flag
and give a WARN_ON_ONCE().
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions