Skip to content
  • Tejun Heo's avatar
    percpu: remove @may_alloc from pcpu_get_pages() · cdb4cba5
    Tejun Heo authored
    
    
    pcpu_get_pages() creates the temp pages array if not already allocated
    and returns the pointer to it.  As the function is called from both
    [de]population paths and depopulation can only happen after at least
    one successful population, the param doesn't make any difference - the
    allocation will always happen on the population path anyway.
    
    Remove @may_alloc from pcpu_get_pages().  Also, add an lockdep
    assertion pcpu_alloc_mutex instead of vaguely stating that the
    exclusion is the caller's responsibility.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    cdb4cba5