Re: [WARNING] CPU: 27 PID: 6295 at kernel/sched/core.c:7300 __might_sleep+0xbd/0xd0()

From: Jinpu Wang
Date: Thu Feb 05 2015 - 03:42:40 EST


Thanks Cong,

I found another thread:
https://lkml.org/lkml/2015/2/3/690

Looks the patch fix the same WARNING.



On Thu, Feb 5, 2015 at 7:33 AM, Cong Wang <xiyou.wangcong@xxxxxxxxx> wrote:
> On Wed, Feb 4, 2015 at 1:57 AM, Jinpu Wang <jinpu.wang@xxxxxxxxxxxxxxxx> wrote:
>> Hi,
>>
>> I hit WARNING below after update to 3.19-rc6, when I running fio with libaio.
>> Any one see this warning before, or maybe know how to fix it?
>>
>> From the call trace:
>> (gdb) list *read_events+0x1e8
>> 0xffffffff81225ad8 is in read_events (fs/aio.c:1259).
>> 1254 * something to be aware of when touching this code.
>> 1255 */
>> 1256 if (until.tv64 == 0)
>> 1257 aio_read_events(ctx, min_nr, nr, event, &ret);
>> 1258 else
>> 1259 wait_event_interruptible_hrtimeout(ctx->wait,
>> 1260 aio_read_events(ctx, min_nr, nr, event, &ret),
>> 1261 until);
>> 1262
>> 1263 if (!ret && signal_pending(current))
>> (gdb)
>>
>> looks like the WARNING come from wait_event_interruptible_hrtimeout?
>
> Probably fixed by:
> http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=3e87523897e18a3e17fc8955ed795188be737ff1



--
Mit freundlichen GrÃÃen,
Best Regards,

Jack Wang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/