Jaegeuk Kim
75a037f360
f2fs: fix livelock in swapfile writes
This patch fixes livelock in the below call path when writing swap pages.
[46374.617256] c2 701 __switch_to+0xe4/0x100
[46374.617265] c2 701 __schedule+0x80c/0xbc4
[46374.617273] c2 701 schedule+0x74/0x98
[46374.617281] c2 701 rwsem_down_read_failed+0x190/0x234
[46374.617291] c2 701 down_read+0x58/0x5c
[46374.617300] c2 701 f2fs_map_blocks+0x138/0x9a8
[46374.617310] c2 701 get_data_block_dio_write+0x74/0x104
[46374.617320] c2 701 __blockdev_direct_IO+0x1350/0x3930
[46374.617331] c2 701 f2fs_direct_IO+0x55c/0x8bc
[46374.617341] c2 701 __swap_writepage+0x1d0/0x3e8
[46374.617351] c2 701 swap_writepage+0x44/0x54
[46374.617360] c2 701 shrink_page_list+0x140/0xe80
[46374.617371] c2 701 shrink_inactive_list+0x510/0x918
[46374.617381] c2 701 shrink_node_memcg+0x2d4/0x804
[46374.617391] c2 701 shrink_node+0x10c/0x2f8
[46374.617400] c2 701 do_try_to_free_pages+0x178/0x38c
[46374.617410] c2 701 try_to_free_pages+0x348/0x4b8
[46374.617419] c2 701 __alloc_pages_nodemask+0x7f8/0x1014
[46374.617429] c2 701 pagecache_get_page+0x184/0x2cc
[46374.617438] c2 701 f2fs_new_node_page+0x60/0x41c
[46374.617449] c2 701 f2fs_new_inode_page+0x50/0x7c
[46374.617460] c2 701 f2fs_init_inode_metadata+0x128/0x530
[46374.617472] c2 701 f2fs_add_inline_entry+0x138/0xd64
[46374.617480] c2 701 f2fs_do_add_link+0xf4/0x178
[46374.617488] c2 701 f2fs_create+0x1e4/0x3ac
[46374.617497] c2 701 path_openat+0xdc0/0x1308
[46374.617507] c2 701 do_filp_open+0x78/0x124
[46374.617516] c2 701 do_sys_open+0x134/0x248
[46374.617525] c2 701 SyS_openat+0x14/0x20
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2019-08-16 14:03:52 -07:00
..
2019-07-12 11:05:43 -07:00
2019-07-19 11:33:22 -07:00
2019-05-21 10:50:46 +02:00
2019-07-30 14:38:52 +01:00
2019-05-24 17:37:52 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-08-02 14:19:41 -07:00
2019-05-24 17:27:11 +02:00
2019-07-20 09:15:51 -07:00
2019-08-05 22:50:38 -05:00
2019-07-16 19:23:23 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-07-10 18:43:43 -07:00
2019-07-12 12:24:03 -07:00
2019-06-20 14:46:34 +02:00
2019-07-12 17:37:53 -07:00
2019-07-14 19:29:04 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-07-12 16:54:37 -07:00
2019-07-18 10:52:08 -07:00
2019-08-16 14:03:52 -07:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:46 +02:00
2019-07-10 18:43:43 -07:00
2019-07-19 10:42:02 -07:00
2019-08-09 16:56:12 +01:00
2019-05-21 10:50:46 +02:00
2019-07-16 19:23:23 -07:00
2019-05-12 17:52:13 -04:00
2019-05-21 10:50:46 +02:00
2019-07-19 10:42:02 -07:00
2019-07-25 11:05:11 +02:00
2019-05-30 11:25:17 -07:00
2019-06-20 17:32:21 -04:00
2019-07-12 11:05:43 -07:00
2019-07-01 08:25:34 -07:00
2019-06-05 17:37:16 +02:00
2019-07-03 17:52:09 -04:00
2019-05-21 10:50:46 +02:00
2019-08-07 12:55:11 -04:00
2019-05-21 10:50:46 +02:00
2019-07-19 10:42:02 -07:00
2019-07-01 08:25:34 -07:00
2019-05-21 10:50:46 +02:00
2019-07-18 17:08:07 -07:00
2019-05-24 17:37:53 +02:00
2019-08-03 07:02:00 -07:00
2019-05-30 11:29:53 -07:00
2019-07-19 10:42:02 -07:00
2019-07-16 15:15:29 -07:00
2019-06-21 09:58:42 -07:00
2019-07-19 10:42:02 -07:00
2019-07-08 21:04:42 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-07-10 20:27:07 -07:00
2019-07-19 10:42:02 -07:00
2019-07-16 19:23:24 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:53 +02:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-07-10 20:09:17 -07:00
2019-07-18 17:08:07 -07:00
2019-07-10 20:27:07 -07:00
2019-07-16 19:23:23 -07:00
2019-07-10 21:06:01 -07:00
2019-08-12 09:32:44 -07:00
2019-07-19 10:42:02 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-07-16 19:23:22 -07:00
2019-05-21 10:50:45 +02:00
2019-07-16 19:23:22 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00
2019-08-08 07:37:03 -06:00
2019-07-15 21:20:52 -07:00
2019-05-24 20:50:36 +02:00
2019-05-30 11:29:21 -07:00
2019-07-30 14:42:13 -07:00
2019-06-19 17:09:55 +02:00
2019-08-03 07:02:01 -07:00
2019-05-21 08:23:41 +01:00
2019-08-05 14:59:05 -07:00
2019-07-20 09:15:51 -07:00
2019-05-21 10:50:45 +02:00
2019-06-29 09:47:31 -06:00
2019-02-01 15:46:24 -08:00
2019-05-21 10:50:45 +02:00
2019-07-18 17:08:07 -07:00
2019-07-25 15:37:04 +02:00
2019-04-08 18:21:02 -05:00
2019-05-21 10:50:45 +02:00
2019-03-08 14:48:40 -08:00
2019-02-28 03:29:26 -05:00
2019-05-25 18:00:01 -04:00
2019-07-19 10:42:02 -07:00
2019-07-16 22:52:37 -04:00
2019-05-21 10:50:45 +02:00
2019-01-21 17:48:13 +01:00
2019-07-10 09:00:57 -06:00
2019-07-19 10:42:02 -07:00
2019-07-12 16:54:37 -07:00
2019-07-20 09:15:51 -07:00
2019-07-31 08:45:10 -06:00
2019-07-05 11:22:11 -04:00
2019-06-24 09:16:47 +10:00
2019-07-19 10:42:02 -07:00
2019-07-10 21:22:43 -07:00
2019-07-17 07:20:43 -07:00
2019-05-21 10:50:45 +02:00
2019-07-16 22:52:37 -04:00
2019-07-10 09:00:57 -06:00
2019-06-20 14:44:55 +02:00
2019-07-26 07:59:06 -04:00
2019-05-30 11:26:32 -07:00
2019-05-25 18:00:06 -04:00
2019-07-24 10:12:09 -07:00
2019-05-25 18:00:07 -04:00
2019-06-17 17:36:09 -04:00
2019-05-30 11:29:53 -07:00
2019-05-21 10:50:45 +02:00
2019-06-09 10:06:20 -07:00
2019-07-16 19:23:25 -07:00
2019-08-13 16:06:52 -07:00
2019-04-08 18:21:02 -05:00
2019-05-31 15:30:03 -06:00
2019-05-21 10:50:45 +02:00
2019-02-01 01:55:45 -05:00
2019-02-07 16:38:35 +01:00
2019-07-31 12:22:32 -04:00
2019-05-14 09:47:50 -07:00
2019-02-07 00:13:27 +01:00
2019-07-05 11:12:07 +09:00
2019-02-07 00:13:27 +01:00
2019-05-21 10:50:45 +02:00