Commit c2d1e3df authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ref_tracker: remove filter_irq_stacks() call

After commit e9400660 ("lib/stackdepot: always do filter_irq_stacks()
in stack_depot_save()") it became unnecessary to filter the stack
before calling stack_depot_save().
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9c1be193
...@@ -89,7 +89,6 @@ int ref_tracker_alloc(struct ref_tracker_dir *dir, ...@@ -89,7 +89,6 @@ int ref_tracker_alloc(struct ref_tracker_dir *dir,
return -ENOMEM; return -ENOMEM;
} }
nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1);
nr_entries = filter_irq_stacks(entries, nr_entries);
tracker->alloc_stack_handle = stack_depot_save(entries, nr_entries, gfp); tracker->alloc_stack_handle = stack_depot_save(entries, nr_entries, gfp);
spin_lock_irqsave(&dir->lock, flags); spin_lock_irqsave(&dir->lock, flags);
...@@ -120,7 +119,6 @@ int ref_tracker_free(struct ref_tracker_dir *dir, ...@@ -120,7 +119,6 @@ int ref_tracker_free(struct ref_tracker_dir *dir,
return -EEXIST; return -EEXIST;
} }
nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1);
nr_entries = filter_irq_stacks(entries, nr_entries);
stack_handle = stack_depot_save(entries, nr_entries, GFP_ATOMIC); stack_handle = stack_depot_save(entries, nr_entries, GFP_ATOMIC);
spin_lock_irqsave(&dir->lock, flags); spin_lock_irqsave(&dir->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment