XFS Deadlock on 4.2+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Dave Chiluk | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Unassigned | ||
linux-lts-utopic (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Invalid
|
Undecided
|
Unassigned | ||
Wily |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* An XFS Deadlock situation is possible on kernels older than 4.4rc1^
* Hung tasks have stack traces similar to
[ 4559.110607] INFO: task kworker/1:0:17 blocked for more than 120 seconds.
[ 4559.143010] Not tainted 4.2.0-18-generic #22~14.04.1-Ubuntu
[ 4559.171972] "echo 0 > /proc/sys/
[ 4559.209753] kworker/1:0 D 0000000000000000 0 17 2 0x00000000
[ 4559.209791] Workqueue: xfs-cil/sdac1 xlog_cil_push_work [xfs]
[ 4559.209794] ffff88085be9fbb8 0000000000000046 ffff88085b746040 ffff88085be8a940
[ 4559.209795] 0000000000000000 ffff88085bea0000 ffff880107fddcc0 ffff88085be8a940
[ 4559.209797] ffff880859119c00 ffff880859119d00 ffff88085be9fbd8 ffffffff817b6a77
[ 4559.209798] Call Trace:
[ 4559.209806] [<ffffffff817b6
[ 4559.209817] [<ffffffffc03c1
[ 4559.209822] [<ffffffff810a0
[ 4559.209832] [<ffffffffc03c1
[ 4559.209835] [<ffffffff813b4
[ 4559.209845] [<ffffffffc03c2
[ 4559.209854] [<ffffffffc03c3
[ 4559.209857] [<ffffffff8108f
[ 4559.209858] [<ffffffff8108f
[ 4559.209860] [<ffffffff8108f
[ 4559.209862] [<ffffffff81095
[ 4559.209863] [<ffffffff81095
[ 4559.209865] [<ffffffff817ba
[ 4559.209866] [<ffffffff81095
or
[305651.804853] INFO: task kswapd0:194 blocked for more than 120 seconds.
[305651.836092] Not tainted 4.2.0-18-generic #22~14.04.1-Ubuntu
[305651.865655] "echo 0 > /proc/sys/
[305651.903596] kswapd0 D ffff88085fa96640 0 194 2 0x00000000
[305651.903614] ffff8810591ab858 0000000000000046 ffff88085c2c2940 ffff88105b19a940
[305651.903616] ffff880066c64548 ffff8810591ac000 ffff8808599cae18 0000000000000000
[305651.903618] ffff88105b19a940 ffff88085a2cb000 ffff8810591ab878 ffffffff817b6a77
[305651.903620] Call Trace:
[305651.903629] [<ffffffff817b6
[305651.903655] [<ffffffffc0402
[305651.903662] [<ffffffff810a0
[305651.903675] [<ffffffffc0403
[305651.903687] [<ffffffffc03f5
[305651.903698] [<ffffffffc03f2
[305651.903701] [<ffffffff810b7
[305651.903711] [<ffffffffc03f5
[305651.903721] [<ffffffffc03eb
[305651.903732] [<ffffffffc03eb
[305651.903735] [<ffffffff81205
[305651.903744] [<ffffffffc03ec
[305651.903755] [<ffffffffc03fa
[305651.903758] [<ffffffff811ee
[305651.903761] [<ffffffff81187
[305651.903763] [<ffffffff8118b
[305651.903764] [<ffffffff8118c
[305651.903766] [<ffffffff8118c
[305651.903768] [<ffffffff81095
[305651.903770] [<ffffffff81095
[305651.903772] [<ffffffff817ba
[305651.903774] [<ffffffff81095
[Test Case]
* Large numbers of IO tasks to large numbers of XFS fileystems while under memory pressure. Testcase may not be guaranteed.
[Regression Potential]
* Upstream commit
https:/
- This commit allocates rescuer threads for each of the XFS work queues.
* Possible additional memory usage from rescuer threads.
[Other Info]
Related branches
Changed in linux-lts-wily (Ubuntu): | |
assignee: | nobody → Dave Chiluk (chiluk) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
status: | Triaged → Won't Fix |
status: | Won't Fix → In Progress |
Changed in linux-lts-wily (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
Changed in linux-lts-utopic (Ubuntu Vivid): | |
status: | New → Invalid |
Changed in linux-lts-utopic (Ubuntu Wily): | |
status: | New → Invalid |
Changed in linux-lts-utopic (Ubuntu): | |
status: | New → Invalid |
Changed in linux-lts-wily (Ubuntu): | |
status: | In Progress → Invalid |
Changed in linux-lts-wily (Ubuntu Vivid): | |
status: | New → Invalid |
Changed in linux-lts-wily (Ubuntu Wily): | |
status: | New → Invalid |
Changed in linux (Ubuntu Vivid): | |
status: | New → Fix Committed |
no longer affects: | linux-lts-wily (Ubuntu) |
no longer affects: | linux-lts-wily (Ubuntu Trusty) |
no longer affects: | linux-lts-wily (Ubuntu Wily) |
no longer affects: | linux-lts-wily (Ubuntu Vivid) |
Changed in linux (Ubuntu Wily): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Trusty): | |
status: | New → Fix Committed |
Changed in linux-lts-utopic (Ubuntu Trusty): | |
status: | New → Fix Committed |
description: | updated |
Changed in linux-lts-utopic (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
User reported hotfixed kernel resolved the deadlock issue. Looking at how many kernel versions are affected now.