Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789AbbEHMAv (ORCPT ); Fri, 8 May 2015 08:00:51 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:36287 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbbEHMAt (ORCPT ); Fri, 8 May 2015 08:00:49 -0400 Message-ID: <554CA56D.3060807@gmail.com> Date: Fri, 08 May 2015 14:00:45 +0200 From: poma User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Linux Kernel list Subject: do not call blocking ops when !TASK_RUNNING Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3111 Lines: 52 [ 19.381055] ------------[ cut here ]------------ [ 19.381225] WARNING: CPU: 3 PID: 487 at kernel/sched/core.c:7291 __might_sleep+0x87/0x90() [ 19.381373] do not call blocking ops when !TASK_RUNNING; state=2 set at [] wait_for_completion_io+0xe5/0x140 ... [ 19.387265] Call Trace: [ 19.387698] [] dump_stack+0x4c/0x65 [ 19.388145] [] warn_slowpath_common+0x8a/0xc0 [ 19.388564] [] warn_slowpath_fmt+0x55/0x70 [ 19.388995] [] ? wait_for_completion_io+0xe5/0x140 [ 19.389433] [] ? wait_for_completion_io+0xe5/0x140 [ 19.389840] [] __might_sleep+0x87/0x90 [ 19.390257] [] generic_make_request_checks+0x3f/0x600 [ 19.390666] [] ? _raw_spin_unlock_irqrestore+0x36/0x70 [ 19.391084] [] ? trace_hardirqs_on_caller+0x13d/0x1e0 [ 19.391505] [] generic_make_request+0x27/0x130 [ 19.391919] [] raid1_unplug+0x108/0x160 [raid1] [ 19.392325] [] blk_flush_plug_list+0x9a/0x260 [ 19.392728] [] ? _raw_spin_unlock_irq+0x30/0x50 [ 19.393142] [] io_schedule_timeout+0x120/0x130 [ 19.393547] [] ? trace_hardirqs_on+0xd/0x10 [ 19.393955] [] wait_for_completion_io+0x107/0x140 [ 19.394358] [] ? wake_up_state+0x20/0x20 [ 19.394757] [] __blkdev_issue_zeroout+0x227/0x270 [ 19.395162] [] ? wait_for_completion_io+0x4a/0x140 [ 19.395562] [] blkdev_issue_zeroout+0xaa/0x100 [ 19.395966] [] ext4_ext_zeroout.isra.34+0x52/0x60 [ 19.396375] [] ext4_ext_handle_unwritten_extents+0x680/0x10d0 [ 19.396768] [] ext4_ext_map_blocks+0x527/0x13c0 [ 19.397180] [] ? ext4_map_blocks+0x179/0x510 [ 19.397577] [] ? ext4_map_blocks+0x179/0x510 [ 19.397976] [] ext4_map_blocks+0x19d/0x510 [ 19.398372] [] ext4_writepages+0x7fd/0x13e0 [ 19.398759] [] ? update_entity_load_avg+0x381/0x430 [ 19.399154] [] do_writepages+0x21/0x40 [ 19.399536] [] __filemap_fdatawrite_range+0x65/0x90 [ 19.399916] [] filemap_write_and_wait_range+0x2d/0x70 [ 19.400298] [] ext4_sync_file+0x173/0x660 [ 19.400669] [] vfs_fsync_range+0x4b/0xb0 [ 19.401035] [] do_fsync+0x3d/0x70 [ 19.401389] [] SyS_fsync+0x10/0x20 [ 19.401725] [] system_call_fastpath+0x12/0x76 [ 19.402060] ---[ end trace 21b3d7a340807572 ]--- 4.1.0-0.rc2.git3.1.fc23.x86_64 -- 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/