diff options
| author | Qu Wenruo <[email protected]> | 2019-09-10 15:40:19 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-11-18 12:46:46 +0100 |
| commit | 34ffafdba12eee3e387694edd128e954fd355e8e (patch) | |
| tree | 4c13f93f4a9c0b92f626fd80fab1328620c9d51d /tools/perf/scripts/python/stackcollapse.py | |
| parent | abe9339d69bd096e2020ffc39fedee2ac0a9c03b (diff) | |
btrfs: ctree: Remove stray comment of setting up path lock
The following comment shows up in btrfs_search_slot() with out much
sense:
/*
* setup the path here so we can release it under lock
* contention with the cow code
*/
if (cow) {
/* code touching path->lock[] is far away from here */
}
This comment hasn't been cleaned up after the relevant code has been
removed.
The original code is introduced in commit 65b51a009e29
("btrfs_search_slot: reduce lock contention by cowing in two stages"):
+
+ /*
+ * setup the path here so we can release it under lock
+ * contention with the cow code
+ */
+ p->nodes[level] = b;
+ if (!p->skip_locking)
+ p->locks[level] = 1;
+
But in current code, we have different timing for modifying path lock,
so just remove the comment.
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions