Skip to contentSkip to conversation

New: 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002

Bug 22302 [email protected] 1 participant 5 messages Nov 7, 2010 – Nov 16, 2010

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=22302

Summary: 2.6.36 BUG: scheduling while atomic:
rc.sysinit/1376/0x00000002
Product: File System
Version: 2.5
Kernel Version: 2.6.36
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Regression: Yes

Subject : 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002
Submitter : Mathias Burén <[email protected]>
Date : 2010-11-01 18:39
Message-ID : [email protected] References : http://marc.info/?l=linux-kernel&m=128863676810517&w=2

This entry is being used for tracking a regression from 2.6.35. Please don't close it until the problem is fixed in the mainline.

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

[Bug 22302] 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002

https://bugzilla.kernel.org/show_bug.cgi?id=22302

Maciej Rutecki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |16444
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw

[Bug 22302] 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=22302

Theodore Tso <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Theodore Tso <[email protected]> 2010-11-07 22:25:01 --- This is caused by an interaction in two changes that happened in parallel in 2.6.36: commit id's dd3932eddf4 (block: remove BLKDEV_IFL_WAIT) and commit 5c521830cf3 (ext4: Support discard requests when running in no-journal mode).

The problem is that ext4_free_blocks() can be called by functions which are holding spinlocks, so it can't sleep --- and sb_issue_discard() now always waits for the discard to be completed. It doesn't support an asynchronous mode at all.

The fix for the short-term is to remove the call to ext4_issue_discard() in ext4_free_blocks(). This effectively removes the functionality of commit 5c521830cf3. The long-term fix would be to implement a version of sb_issue_discard() which supports asynchronous mode, with an optional callback.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 22302] 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=22302

Florian Mickler <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |CODE_FIX

--- Comment #2 from Florian Mickler <[email protected]> 2010-11-16 18:26:42 --- Fixed by:
commit b56ff9d397cecdaad6c98c9d57cc6fea475e1f50

Author: Theodore Ts'o <[email protected]>
Date:   Mon Nov 8 13:49:33 2010 -0500

ext4: Don't call sb_issue_discard() in ext4_free_blocks()

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

[Bug 22302] 2.6.36 BUG: scheduling while atomic: rc.sysinit/1376/0x00000002

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=22302

Florian Mickler <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.