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

From: Cong Wang
Date: Thu Feb 05 2015 - 01:33:28 EST


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
--
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/