Paul E. McKenney
9f47eb5461
fs/btrfs: Add cond_resched() for try_release_extent_mapping() stalls
Very large I/Os can cause the following RCU CPU stall warning:
RIP: 0010:rb_prev+0x8/0x50
Code: 49 89 c0 49 89 d1 48 89 c2 48 89 f8 e9 e5 fd ff ff 4c 89 48 10 c3 4c =
89 06 c3 4c 89 40 10 c3 0f 1f 00 48 8b 0f 48 39 cf 74 38 <48> 8b 47 10 48 85 c0 74 22 48 8b 50 08 48 85 d2 74 0c 48 89 d0 48
RSP: 0018:ffffc9002212bab0 EFLAGS: 00000287 ORIG_RAX: ffffffffffffff13
RAX: ffff888821f93630 RBX: ffff888821f93630 RCX: ffff888821f937e0
RDX: 0000000000000000 RSI: 0000000000102000 RDI: ffff888821f93630
RBP: 0000000000103000 R08: 000000000006c000 R09: 0000000000000238
R10: 0000000000102fff R11: ffffc9002212bac8 R12: 0000000000000001
R13: ffffffffffffffff R14: 0000000000102000 R15: ffff888821f937e0
__lookup_extent_mapping+0xa0/0x110
try_release_extent_mapping+0xdc/0x220
btrfs_releasepage+0x45/0x70
shrink_page_list+0xa39/0xb30
shrink_inactive_list+0x18f/0x3b0
shrink_lruvec+0x38e/0x6b0
shrink_node+0x14d/0x690
do_try_to_free_pages+0xc6/0x3e0
try_to_free_mem_cgroup_pages+0xe6/0x1e0
reclaim_high.constprop.73+0x87/0xc0
mem_cgroup_handle_over_high+0x66/0x150
exit_to_usermode_loop+0x82/0xd0
do_syscall_64+0xd4/0x100
entry_SYSCALL_64_after_hwframe+0x44/0xa9
On a PREEMPT=n kernel, the try_release_extent_mapping() function's
"while" loop might run for a very long time on a large I/O. This commit
therefore adds a cond_resched() to this loop, providing RCU any needed
quiescent states.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2020-06-29 11:58:50 -07:00
..
2020-03-23 17:02:00 +01:00
2019-04-29 19:02:44 +02:00
2020-03-23 17:01:51 +01:00
2020-03-23 17:01:51 +01:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:35 +02:00
2020-06-16 19:20:58 +02:00
2020-05-25 11:25:30 +02:00
2020-05-25 11:25:35 +02:00
2020-03-23 17:01:55 +01:00
2020-06-09 19:21:48 +02:00
2020-03-23 17:01:40 +01:00
2020-03-23 17:01:39 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:37 +02:00
2020-05-28 14:01:52 +02:00
2020-06-16 19:22:23 +02:00
2020-03-23 17:01:55 +01:00
2019-07-04 17:26:17 +02:00
2020-03-25 16:26:00 +01:00
2020-03-23 17:01:53 +01:00
2020-03-23 17:01:55 +01:00
2019-07-04 17:26:17 +02:00
2020-03-23 17:01:35 +01:00
2019-11-18 12:46:52 +01:00
2019-04-29 19:02:50 +02:00
2020-01-20 16:41:01 +01:00
2020-04-20 17:43:42 +02:00
2020-06-02 19:59:25 -07:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:37 +02:00
2020-03-23 17:01:42 +01:00
2020-06-29 11:58:50 -07:00
2020-06-05 16:19:28 -07:00
2020-02-12 17:16:46 +01:00
2019-11-18 23:43:44 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:35 +02:00
2020-05-25 11:25:37 +02:00
2020-06-16 19:22:45 +02:00
2020-05-25 11:25:38 +02:00
2020-01-20 16:41:00 +01:00
2020-03-23 17:01:59 +01:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-03-23 17:01:55 +01:00
2018-04-12 16:29:46 +02:00
2020-06-23 09:20:11 -07:00
2020-06-16 19:24:03 +02:00
2020-06-14 01:19:02 +02:00
2020-05-25 11:25:16 +02:00
2020-03-23 17:01:43 +01:00
2019-11-18 12:46:59 +01:00
2020-03-23 17:01:54 +01:00
2020-05-25 11:25:19 +02:00
2020-03-23 17:01:34 +01:00
2020-03-23 17:01:34 +01:00
2018-04-12 16:29:51 +02:00
2020-01-20 16:40:55 +01:00
2018-04-20 19:18:16 +02:00
2020-05-25 11:25:37 +02:00
2019-04-29 19:02:54 +02:00
2020-05-25 11:25:29 +02:00
2020-02-19 00:35:54 +01:00
2020-03-23 17:01:44 +01:00
2019-07-01 13:34:58 +02:00
2020-03-23 17:01:53 +01:00
2019-11-18 17:51:51 +01:00
2020-03-23 17:01:56 +01:00
2019-04-29 19:02:49 +02:00
2020-04-08 19:10:34 +02:00
2020-03-23 17:01:54 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:36 +02:00
2020-06-02 19:59:25 -07:00
2018-04-12 16:29:46 +02:00
2020-05-25 11:25:23 +02:00
2020-05-25 11:25:22 +02:00
2020-05-25 11:25:35 +02:00
2020-05-25 11:25:37 +02:00
2020-03-23 18:14:47 +01:00
2020-03-23 17:01:35 +01:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:22 +02:00
2020-05-25 11:25:23 +02:00
2019-04-29 19:02:39 +02:00
2020-05-25 11:25:35 +02:00
2020-06-16 19:22:23 +02:00
2019-04-29 19:02:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:35 +02:00
2020-03-23 17:01:48 +01:00
2019-06-17 16:37:17 +02:00
2019-04-29 19:02:44 +02:00
2020-01-31 10:30:40 -08:00
2019-11-18 12:46:59 +01:00