Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965286AbbBDJ56 (ORCPT ); Wed, 4 Feb 2015 04:57:58 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:57692 "EHLO mail-we0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964793AbbBDJ5x (ORCPT ); Wed, 4 Feb 2015 04:57:53 -0500 MIME-Version: 1.0 From: Jinpu Wang Date: Wed, 4 Feb 2015 10:57:31 +0100 Message-ID: Subject: [WARNING] CPU: 27 PID: 6295 at kernel/sched/core.c:7300 __might_sleep+0xbd/0xd0() To: "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3298 Lines: 72 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? [ 165.011157] ------------[ cut here ]------------ [ 165.011182] WARNING: CPU: 27 PID: 6295 at kernel/sched/core.c:7300 __might_sleep+0xbd/0xd0() [ 165.011197] do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait_event+0x59/0x110 [ 165.011199] Modules linked in: ibnbd_client(O) ibtrs_client(O) ib_ipoib ib_uverbs ib_umad mlx4_ib mlx4_en null_blk rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr mlx4_core [ 165.011224] CPU: 27 PID: 6295 Comm: fio Tainted: G O 3.19.0-rc6debug #3 [ 165.011226] Hardware name: Supermicro SBA-7142G-T4/BHQGE, BIOS 3.00 10/24/2012 [ 165.011228] ffffffff81a56455 ffff88081173bc58 ffffffff817d232b 0000000000000007 [ 165.011233] ffff88081173bca8 ffff88081173bc98 ffffffff8109237a ffff88081173bc88 [ 165.011236] ffffffff81a573d8 000000000000026d 0000000000000000 ffff881011e70000 [ 165.011240] Call Trace: [ 165.011247] [] dump_stack+0x4c/0x65 [ 165.011252] [] warn_slowpath_common+0x8a/0xc0 [ 165.011255] [] warn_slowpath_fmt+0x46/0x50 [ 165.011260] [] ? mark_held_locks+0x75/0xa0 [ 165.011264] [] ? mutex_lock_nested+0x289/0x3c0 [ 165.011268] [] ? prepare_to_wait_event+0x59/0x110 [ 165.011271] [] ? prepare_to_wait_event+0x59/0x110 [ 165.011274] [] __might_sleep+0xbd/0xd0 [ 165.011277] [] mutex_lock_nested+0x2f/0x3c0 [ 165.011280] [] ? local_clock+0x25/0x30 [ 165.011284] [] ? _raw_spin_unlock_irqrestore+0x36/0x60 [ 165.011290] [] aio_read_events+0x4c/0x340 [ 165.011293] [] ? prepare_to_wait_event+0x97/0x110 [ 165.011296] [] read_events+0x1e8/0x300 [ 165.011300] [] ? wait_woken+0xc0/0xc0 [ 165.011305] [] ? __run_hrtimer+0x5e0/0x5e0 [ 165.011308] [] ? lookup_ioctx+0x1c0/0x2a0 [ 165.011312] [] SyS_io_getevents+0x62/0x1a0 [ 165.011317] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 165.011321] [] system_call_fastpath+0x12/0x17 [ 165.011323] ---[ end trace 5e2ce0c3bdb141cd ]--- Best Regards, Jack Wang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/