Re: [PATCH] fault-inject: use correct check for interrupts

From: Dmitry Vyukov
Date: Tue Mar 28 2017 - 05:59:30 EST


On Sat, Mar 25, 2017 at 8:18 AM, Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:
> 2017-03-21 18:18 GMT+09:00 Dmitry Vyukov <dvyukov@xxxxxxxxxx>:
>> in_interrupt() also returns true when bh is disabled in task context.
>> That's not what fail_task() wants to check.
>> Use the new in_task() predicate that does the right thing.
>>
>> Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
>> Cc: akinobu.mita@xxxxxxxxx
>> Cc: linux-kernel@xxxxxxxxxxxxxxx
>> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>> Cc: linux-mm@xxxxxxxxx
>
> This change looks good to me.
>
> Reviewed-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>


Andrew, will you take this to mm please?