Bug 1220519 - kernel/sched/core.c:7291 __might_sleep+0x87/0x90()
Summary: kernel/sched/core.c:7291 __might_sleep+0x87/0x90()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-11 18:17 UTC by poma
Modified: 2015-06-08 11:27 UTC (History)
8 users (show)

Fixed In Version: kernel-4.0.4-202.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-01 17:03:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description poma 2015-05-11 18:17:49 UTC
[   38.413109] ------------[ cut here ]------------
[   38.413119] WARNING: CPU: 1 PID: 6 at kernel/sched/core.c:7291 __might_sleep+0x87/0x90()
[   38.413124] do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff81898dd5>] wait_for_completion_io+0xe5/0x140
...
[   38.413200] CPU: 1 PID: 6 Comm: kworker/u16:0 Tainted: G         C      4.1.0-0.rc3.git0.1.fc23.x86_64+debug #1
...
[   38.413217] Call Trace:
[   38.413221]  [<ffffffff81895355>] dump_stack+0x4c/0x65
[   38.413224]  [<ffffffff810b043a>] warn_slowpath_common+0x8a/0xc0
[   38.413227]  [<ffffffff810b04c5>] warn_slowpath_fmt+0x55/0x70
[   38.413229]  [<ffffffff81898dd5>] ? wait_for_completion_io+0xe5/0x140
[   38.413230]  [<ffffffff81898dd5>] ? wait_for_completion_io+0xe5/0x140
[   38.413232]  [<ffffffff810e0b67>] __might_sleep+0x87/0x90
[   38.413235]  [<ffffffff813fdeaf>] generic_make_request_checks+0x3f/0x600
[   38.413238]  [<ffffffff8189e726>] ? _raw_spin_unlock_irqrestore+0x36/0x70
[   38.413241]  [<ffffffff811102fd>] ? trace_hardirqs_on_caller+0x13d/0x1e0
[   38.413243]  [<ffffffff813fe497>] generic_make_request+0x27/0x130
[   38.413250]  [<ffffffffa0000438>] raid1_unplug+0x108/0x160 [raid1]
[   38.413253]  [<ffffffff8140437a>] blk_flush_plug_list+0x9a/0x260
[   38.413256]  [<ffffffff81897710>] io_schedule_timeout+0x120/0x130
[   38.413258]  [<ffffffff81898df7>] wait_for_completion_io+0x107/0x140
[   38.413260]  [<ffffffff810e9c90>] ? wake_up_state+0x20/0x20
[   38.413263]  [<ffffffff8140c087>] __blkdev_issue_zeroout+0x227/0x270
[   38.413265]  [<ffffffff81898d3a>] ? wait_for_completion_io+0x4a/0x140
[   38.413268]  [<ffffffff8140c17a>] blkdev_issue_zeroout+0xaa/0x100
[   38.413271]  [<ffffffff813512f2>] ext4_ext_zeroout.isra.34+0x52/0x60
[   38.413274]  [<ffffffff813572a0>] ext4_ext_handle_unwritten_extents+0x680/0x10d0
[   38.413276]  [<ffffffff81358247>] ext4_ext_map_blocks+0x527/0x13c0
[   38.413279]  [<ffffffff81324779>] ? ext4_map_blocks+0x179/0x510
[   38.413281]  [<ffffffff81324779>] ? ext4_map_blocks+0x179/0x510
[   38.413283]  [<ffffffff8132479d>] ext4_map_blocks+0x19d/0x510
[   38.413285]  [<ffffffff8132828d>] ext4_writepages+0x7fd/0x13e0
[   38.413289]  [<ffffffff81201c91>] do_writepages+0x21/0x40
[   38.413292]  [<ffffffff812b72c0>] __writeback_single_inode+0x70/0xb00
[   38.413294]  [<ffffffff812b8360>] writeback_sb_inodes+0x2c0/0x680
[   38.413296]  [<ffffffff812b87c2>] __writeback_inodes_wb+0xa2/0xd0
[   38.413298]  [<ffffffff812b8c03>] wb_writeback+0x413/0x790
[   38.413300]  [<ffffffff812a2224>] ? get_nr_inodes+0x54/0x80
[   38.413302]  [<ffffffff812b95b1>] bdi_writeback_workfn+0x3b1/0x8c0
[   38.413305]  [<ffffffff810d1572>] process_one_work+0x232/0x860
[   38.413307]  [<ffffffff810d14db>] ? process_one_work+0x19b/0x860
[   38.413309]  [<ffffffff810d1c7a>] ? worker_thread+0xda/0x470
[   38.413312]  [<ffffffff810d1bf3>] worker_thread+0x53/0x470
[   38.413314]  [<ffffffff810d1ba0>] ? process_one_work+0x860/0x860
[   38.413316]  [<ffffffff810d86c4>] kthread+0x104/0x120
[   38.413319]  [<ffffffff810ee045>] ? local_clock+0x25/0x30
[   38.413321]  [<ffffffff810d85c0>] ? kthread_create_on_node+0x250/0x250
[   38.413323]  [<ffffffff8189f5a2>] ret_from_fork+0x42/0x70
[   38.413325]  [<ffffffff810d85c0>] ? kthread_create_on_node+0x250/0x250
[   38.413327] ---[ end trace ca9ea5620ac2e2e0 ]---

Comment 3 poma 2015-05-13 23:15:31 UTC
The same is with the stable 4.0.3.

[   11.906422] ------------[ cut here ]------------
[   11.906432] WARNING: CPU: 1 PID: 472 at kernel/sched/core.c:7302 __might_sleep+0x87/0x90()
[   11.906439] do not call blocking ops when !TASK_RUNNING; state=2 set at [<ffffffff818849f5>] wait_for_completion_io+0xe5/0x140
[   11.906465] Modules linked in: ivtv(+) mxm_wmi snd_hda_intel tveeprom video cx2341x ttm serio_raw snd_hda_controller v4l2_common r8169 parport_serial drm_kms_helper parport_pc videodev media i2c_algo_bit drm snd_hda_codec skge mii parport edac_core edac_mce_amd snd_hwdep ata_generic pata_acpi snd_seq snd_seq_device wmi snd_pcm snd_timer snd soundcore shpchp pata_amd i2c_nforce2 acpi_cpufreq nfsd auth_rpcgss nfs_acl ecryptfs lockd grace encrypted_keys trusted sunrpc tpm i2c_dev binfmt_misc raid1
[   11.906469] CPU: 1 PID: 472 Comm: systemd-journal Not tainted 4.0.3-300.fc22.x86_64+debug #1
...
[   11.906476] Call Trace:
[   11.906480]  [<ffffffff81881318>] dump_stack+0x4c/0x65
[   11.906482]  [<ffffffff810ac4ba>] warn_slowpath_common+0x8a/0xc0
[   11.906484]  [<ffffffff810ac545>] warn_slowpath_fmt+0x55/0x70
[   11.906486]  [<ffffffff818849f5>] ? wait_for_completion_io+0xe5/0x140
[   11.906487]  [<ffffffff818849f5>] ? wait_for_completion_io+0xe5/0x140
[   11.906489]  [<ffffffff810dc7b7>] __might_sleep+0x87/0x90
[   11.906492]  [<ffffffff813ef8cf>] generic_make_request_checks+0x3f/0x600
[   11.906495]  [<ffffffff8188a336>] ? _raw_spin_unlock_irqrestore+0x36/0x70
[   11.906497]  [<ffffffff8110be6d>] ? trace_hardirqs_on_caller+0x13d/0x1e0
[   11.906498]  [<ffffffff813efeb7>] generic_make_request+0x27/0x130
[   11.906505]  [<ffffffffa0000438>] raid1_unplug+0x108/0x160 [raid1]
[   11.906507]  [<ffffffff813f5d8a>] blk_flush_plug_list+0x9a/0x260
[   11.906509]  [<ffffffff8188a2e0>] ? _raw_spin_unlock_irq+0x30/0x50
[   11.906511]  [<ffffffff81883340>] io_schedule_timeout+0x120/0x130
[   11.906512]  [<ffffffff8110bf1d>] ? trace_hardirqs_on+0xd/0x10
[   11.906514]  [<ffffffff81884a17>] wait_for_completion_io+0x107/0x140
[   11.906516]  [<ffffffff810e5c90>] ? wake_up_state+0x20/0x20
[   11.906518]  [<ffffffff813fdaa7>] __blkdev_issue_zeroout+0x227/0x270
[   11.906520]  [<ffffffff8188495a>] ? wait_for_completion_io+0x4a/0x140
[   11.906522]  [<ffffffff813fdb9a>] blkdev_issue_zeroout+0xaa/0x100
[   11.906524]  [<ffffffff81346402>] ext4_ext_zeroout.isra.33+0x52/0x60
[   11.906525]  [<ffffffff8134c96b>] ext4_ext_handle_unwritten_extents+0xc3b/0x10d0
[   11.906527]  [<ffffffff8134d357>] ext4_ext_map_blocks+0x527/0x13e0
[   11.906530]  [<ffffffff81319a59>] ? ext4_map_blocks+0x179/0x510
[   11.906531]  [<ffffffff81319a59>] ? ext4_map_blocks+0x179/0x510
[   11.906532]  [<ffffffff81319a7d>] ext4_map_blocks+0x19d/0x510
[   11.906534]  [<ffffffff8131d292>] ? ext4_writepages+0x522/0x13e0
[   11.906535]  [<ffffffff8131d56d>] ext4_writepages+0x7fd/0x13e0
[   11.906539]  [<ffffffff811f77f1>] do_writepages+0x21/0x40
[   11.906541]  [<ffffffff811e9175>] __filemap_fdatawrite_range+0x65/0x90
[   11.906542]  [<ffffffff811e92bd>] filemap_write_and_wait_range+0x2d/0x70
[   11.906544]  [<ffffffff813125f3>] ext4_sync_file+0x173/0x660
[   11.906546]  [<ffffffff812b365e>] vfs_fsync_range+0x4e/0xb0
[   11.906548]  [<ffffffff812b371d>] do_fsync+0x3d/0x70
[   11.906549]  [<ffffffff812b3a10>] SyS_fsync+0x10/0x20
[   11.906551]  [<ffffffff8188ae89>] system_call_fastpath+0x12/0x17
[   11.906552] ---[ end trace b410c9ba3fb479ca ]---

Comment 4 poma 2015-05-14 03:47:24 UTC
I asked MD guys, but I ask you also,

I patched the stable 4.0.3-300.fc22.x86_64+debug with the 5596d0d,
and the effect is positivo:
4.0.3-201.fc21.x86_64+debug - PASSED

Stable 3.19.x is EOL,
so care to push 5596d0d to the stable 4.0.x
so it can land with both, Fedora 22 and Fedora 21?

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/kernel/sched/core.c?id=5596d0d

For Rawhide, because it is already in the linux-next, it will probably be in the next mainline rc, so no worry for that.

Comment 7 Josh Boyer 2015-05-26 13:06:41 UTC
Added on all 4.0.x branches.  Thank you.

Comment 8 Fedora Update System 2015-05-28 20:40:41 UTC
kernel-4.0.4-303.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/kernel-4.0.4-303.fc22

Comment 9 Fedora Update System 2015-05-28 20:41:57 UTC
kernel-4.0.4-202.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/kernel-4.0.4-202.fc21

Comment 10 Fedora Update System 2015-05-28 20:41:59 UTC
kernel-4.0.4-101.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/kernel-4.0.4-101.fc20

Comment 11 Fedora Update System 2015-05-30 15:46:24 UTC
Package kernel-4.0.4-202.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-4.0.4-202.fc21'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9127/kernel-4.0.4-202.fc21
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2015-06-01 17:03:46 UTC
kernel-4.0.4-303.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-06-01 17:06:49 UTC
kernel-4.0.4-202.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 poma 2015-06-08 11:27:15 UTC
Recently, as part of stable 4.0.5

$ uname -r
4.0.5-500.fc22.x86_64


Note You need to log in before you can comment on or make changes to this bug.