From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Janecek Subject: WARNING: at kernel/sched/core.c:7331 __might_sleep+0xa6/0xb0() during boot Date: Fri, 17 Apr 2015 09:56:32 +0200 Message-ID: <20150417075631.GA5386@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org Cc: linux-kernel@vger.kernel.org List-Id: linux-raid.ids Hello, I'm getting these warnings once during boot since 3.19.0. The fs is on lvm on md raid1. [ 57.217167] ------------[ cut here ]------------ [ 57.221800] WARNING: CPU: 4 PID: 1071 at kernel/sched/core.c:7331 __might_sleep+0xa6/0xb0() [ 57.230184] do not call blocking ops when !TASK_RUNNING; state=2 set at [] prepare_to_wait+0x2b/0xa0 [ 57.240886] Modules linked in: xt_multiport iptable_filter ip_tables x_tables cn dummy bridge stp llc xfs libcrc32c coretemp kvm_intel kvm iTCO_wdt microcode evdev iTCO_vendor_support psmouse serio_raw tpm_infineon tpm_tis tpm i7core_edac edac_core i2c_i801 button lpc_ich mfd_core i2c_core acpi_cpufreq processor thermal_sys hwmon_vid loop ipmi_watchdog ipmi_si ipmi_poweroff ipmi_devintf ipmi_msghandler fuse autofs4 btrfs xor raid6_pq dm_mod raid1 md_mod sg sd_mod hid_generic usbhid hid e1000e ptp crc32c_intel ahci libahci libata ehci_pci ehci_hcd scsi_mod pps_core usbcore usb_common [ 57.274503] CPU: 4 PID: 1071 Comm: freshclam Not tainted 3.19.4 #72 [ 57.274503] Hardware name: Supermicro X8SIL/X8SIL, BIOS 1.1 05/27/2010 [ 57.274504] ffffffff8179723f ffff88022fedb2a8 ffffffff814f70f3 ffffffff81089bf9 [ 57.274507] ffff88022fedb2f8 ffff88022fedb2e8 ffffffff81049bc5 ffff88023466e540 [ 57.274509] ffffffff817af863 00000000000006f6 0000000000000000 ffff88023625d800 [ 57.274511] Call Trace: [ 57.274512] [] dump_stack+0x4c/0x65 [ 57.274518] [] ? down_trylock+0x29/0x40 [ 57.274521] [] warn_slowpath_common+0x85/0xc0 [ 57.274524] [] warn_slowpath_fmt+0x41/0x50 [ 57.274526] [] ? prepare_to_wait+0x2b/0xa0 [ 57.274527] [] ? prepare_to_wait+0x2b/0xa0 [ 57.274529] [] __might_sleep+0xa6/0xb0 [ 57.274532] [] generic_make_request_checks+0x2b/0x400 [ 57.274534] [] ? trace_hardirqs_on_caller+0x15d/0x200 [ 57.274537] [] ? trace_hardirqs_on+0xd/0x10 [ 57.274539] [] generic_make_request+0x13/0x120 [ 57.274541] [] raid1_unplug+0x108/0x160 [raid1] [ 57.274544] [] blk_flush_plug_list+0xa2/0x240 [ 57.274546] [] ? trace_hardirqs_on+0xd/0x10 [ 57.274548] [] ? bit_wait_timeout+0x80/0x80 [ 57.274550] [] io_schedule+0x7d/0x150 [ 57.274552] [] bit_wait_io+0x2f/0x50 [ 57.274553] [] __wait_on_bit+0x5f/0x90 [ 57.274555] [] ? bit_wait_timeout+0x80/0x80 [ 57.274556] [] out_of_line_wait_on_bit+0x6d/0x80 [ 57.274558] [] ? autoremove_wake_function+0x40/0x40 [ 57.274559] [] __wait_on_buffer+0x3f/0x50 [ 57.274562] [] ext4_wait_block_bitmap.part.10+0xc0/0xd0 [ 57.274566] [] ext4_wait_block_bitmap+0x19/0x20 [ 57.274567] [] ext4_mb_init_cache+0x203/0x780 [ 57.274570] [] ? lru_cache_add+0x9/0x10 [ 57.274574] [] ext4_mb_init_group+0x11e/0x210 [ 57.274575] [] ext4_mb_good_group+0x12b/0x1a0 [ 57.274577] [] ext4_mb_regular_allocator+0x1b8/0x460 [ 57.274579] [] ? ext4_mb_use_preallocated.constprop.27+0x40/0x350 [ 57.274580] [] ? ext4_mb_initialize_context+0x6d/0x1b0 [ 57.274582] [] ext4_mb_new_blocks+0x480/0x600 [ 57.274584] [] ext4_ext_map_blocks+0x62d/0xeb0 [ 57.274586] [] ext4_map_blocks+0x133/0x560 [ 57.274588] [] ext4_writepages+0x560/0xdb0 [ 57.274590] [] do_writepages+0x1c/0x30 [ 57.274592] [] __filemap_fdatawrite_range+0x51/0x60 [ 57.274595] [] filemap_flush+0x17/0x20 [ 57.274597] [] ext4_alloc_da_blocks+0x41/0x90 [ 57.274598] [] ext4_rename+0x62c/0x880 [ 57.274601] [] ? mark_held_locks+0x71/0xa0 [ 57.274603] [] ? mutex_lock_nested+0x22e/0x3b0 [ 57.274605] [] ext4_rename2+0x18/0x40 [ 57.274606] [] vfs_rename+0x3a2/0x7e0 [ 57.274609] [] SYSC_renameat2+0x5b0/0x620 [ 57.274610] [] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 57.274613] [] ? remove_wait_queue+0x48/0x50 [ 57.274615] [] ? do_wait+0x198/0x2c0 [ 57.274617] [] ? trace_hardirqs_on_caller+0x15d/0x200 [ 57.274618] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 57.274621] [] SyS_rename+0x19/0x20 [ 57.274623] [] system_call_fastpath+0x12/0x17 [ 57.274626] ---[ end trace b4ab91b16fa597a6 ]--- Thanks, Petr Janecek