Skip to content
  • Matthew Wilcox's avatar
    ida: Move ida_bitmap to a percpu variable · 7ad3d4d8
    Matthew Wilcox authored
    
    
    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>
    7ad3d4d8