Re: [PATCH] zsmalloc: use preempt.h for in_interrupt()

2015-10-14 Thread Minchan Kim
On Wed, Oct 14, 2015 at 10:13:20PM +0900, Sergey Senozhatsky wrote: > A cosmetic change. > > Commit c60369f01125 ("staging: zsmalloc: prevent mappping > in interrupt context") added in_interrupt() check to > zs_map_object() and 'hardirq.h' include; but in_interrupt() > macro is defined in

[PATCH] zsmalloc: use preempt.h for in_interrupt()

2015-10-14 Thread Sergey Senozhatsky
A cosmetic change. Commit c60369f01125 ("staging: zsmalloc: prevent mappping in interrupt context") added in_interrupt() check to zs_map_object() and 'hardirq.h' include; but in_interrupt() macro is defined in 'preempt.h' not in 'hardirq.h', so include it instead. Signed-off-by: Sergey

[PATCH] zsmalloc: use preempt.h for in_interrupt()

2015-10-14 Thread Sergey Senozhatsky
A cosmetic change. Commit c60369f01125 ("staging: zsmalloc: prevent mappping in interrupt context") added in_interrupt() check to zs_map_object() and 'hardirq.h' include; but in_interrupt() macro is defined in 'preempt.h' not in 'hardirq.h', so include it instead. Signed-off-by: Sergey

Re: [PATCH] zsmalloc: use preempt.h for in_interrupt()

2015-10-14 Thread Minchan Kim
On Wed, Oct 14, 2015 at 10:13:20PM +0900, Sergey Senozhatsky wrote: > A cosmetic change. > > Commit c60369f01125 ("staging: zsmalloc: prevent mappping > in interrupt context") added in_interrupt() check to > zs_map_object() and 'hardirq.h' include; but in_interrupt() > macro is defined in