• M
    ida: Move ida_bitmap to a percpu variable · 7ad3d4d8
    Matthew Wilcox 提交于
    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: NMatthew Wilcox <mawilcox@microsoft.com>
    7ad3d4d8
idr.h 6.1 KB