• Sebastian Andrzej Siewior's avatar
    net: vxge: Remove in_interrupt() conditionals · 77afca29
    Sebastian Andrzej Siewior authored
    vxge_os_dma_malloc() and vxge_os_dma_malloc_async() are both called from
    callchains which use GFP_KERNEL allocations unconditionally or have other
    requirements to be called from fully preemptible task context..
    
    vxge_os_dma_malloc():
      1)  __vxge_hw_blockpool_create() <- GFP_KERNEL
    
      2)  __vxge_hw_mempool_grow() <- vzalloc()
            __vxge_hw_blockpool_malloc()
    
    vxge_os_dma_malloc_async():
      1  __vxge_hw_mempool_grow() <- vzalloc()
          __vxge_hw_blockpool_malloc()
    	__vxge_hw_blockpool_blocks_add()
    
      2)  vxge_hw_vpath_open()	<- vzalloc()
    	__vxge_hw_blockpool_block_allocate()
    
    That means neither of these functions needs a conditional allocation mode.
    
    Remove the in_interrupt() conditional and use GFP_KERNEL.
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    77afca29
vxge-config.h 74 KB