From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Battersby Subject: RAID1 might_sleep() warning on 3.19-rc7 Date: Thu, 05 Feb 2015 15:27:58 -0500 Message-ID: <54D3D24E.5060303@cybernetics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-raid-owner@vger.kernel.org To: Neil Brown , linux-raid@vger.kernel.org List-Id: linux-raid.ids I get the might_sleep() warning below when writing some data to an ext3 filesystem on a RAID1. But everything works OK, so there is no actual problem, just a warning. I see that there has been a fix for a might_sleep() warning in md/bitmap since 3.19-rc7, but this is a different warning. --- > cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sda1[0] sdb1[1] 1959884 blocks super 1.0 [2/2] [UU] unused devices: --- > grep md0 /proc/mounts /dev/md0 / ext3 rw,noatime,errors=continue,barrier=1,data=journal 0 0 --- WARNING: CPU: 3 PID: 1069 at kernel/sched/core.c:7300 __might_sleep+0x82/0x90() do not call blocking ops when !TASK_RUNNING; state=2 set at [] prepare_to_wait+0x31/0xa0 Modules linked in: iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi igb i2c_algo_bit ptp pps_core mptsas mptscsih mptbase pm80xx libsas mpt2sas scsi_transport_sas raid_class sg coretemp eeprom w83795 i2c_i801 CPU: 3 PID: 1069 Comm: kjournald Not tainted 3.19.0-rc7 #1 Hardware name: Supermicro X8DTH-i/6/iF/6F/X8DTH, BIOS 2.1b 05/04/12 0000000000001c84 ffff88032f1df608 ffffffff80645918 0000000000001c84 ffff88032f1df658 ffff88032f1df648 ffffffff8025ea6b ffff8800bb0b4d58 0000000000000000 00000000000006f6 ffffffff80942b6f ffff8803317b8a00 Call Trace: [] dump_stack+0x4f/0x6f [] warn_slowpath_common+0x8b/0xd0 [] warn_slowpath_fmt+0x41/0x50 [] ? prepare_to_wait+0x31/0xa0 [] ? prepare_to_wait+0x31/0xa0 [] __might_sleep+0x82/0x90 [] generic_make_request_checks+0x36/0x2d0 [] ? trace_hardirqs_on+0xd/0x10 [] generic_make_request+0x13/0x100 [] raid1_unplug+0x12b/0x170 [] blk_flush_plug_list+0xa2/0x230 [] ? trace_hardirqs_on_caller+0x105/0x1d0 [] ? bit_wait_timeout+0x70/0x70 [] io_schedule+0x43/0x80 [] bit_wait_io+0x27/0x50 [] __wait_on_bit+0x5d/0x90 [] ? generic_make_request+0xc0/0x100 [] ? bit_wait_timeout+0x70/0x70 [] out_of_line_wait_on_bit+0x73/0x90 [] ? wake_atomic_t_function+0x40/0x40 [] __wait_on_buffer+0x3f/0x50 [] __bread_gfp+0xa8/0xd0 [] ext3_get_branch+0x95/0x140 [] ext3_get_blocks_handle+0xb6/0xca0 [] ? __lock_acquire+0x50c/0xc30 [] ? __slab_alloc+0x212/0x560 [] ? trace_hardirqs_on_caller+0x105/0x1d0 [] ext3_get_block+0xa8/0x100 [] generic_block_bmap+0x3a/0x40 [] ext3_bmap+0x7d/0x90 [] bmap+0x1c/0x20 [] journal_bmap+0x30/0xa0 [] journal_next_log_block+0x78/0xa0 [] journal_commit_transaction+0x657/0x13e0 [] ? lock_timer_base+0x37/0x70 [] ? get_next_timer_interrupt+0x240/0x240 [] kjournald+0xf2/0x210 [] ? woken_wake_function+0x10/0x10 [] ? commit_timeout+0x10/0x10 [] kthread+0xee/0x120 [] ? __init_kthread_worker+0x70/0x70 [] ret_from_fork+0x7c/0xb0 [] ? __init_kthread_worker+0x70/0x70 ---[ end trace 27f081e879dfbb12 ]---