Skip to content
Commit 7ad3d4d8 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

ida: Move ida_bitmap to a percpu variable



When we preload the IDA, we allocate an IDA bitmap.  Instead of storing
that preallocated bitmap in the IDA, we store it in a percpu variable.
Generally there are more IDAs in the system than CPUs, so this cuts down
on the number of preallocated bitmaps that are unused, and about half
of the IDA users did not call ida_destroy() so they were leaking IDA
bitmaps.

Signed-off-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
parent 0a835c4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment