Jaegeuk Kim
828add774f
f2fs: prepare a waiter before entering io_schedule
This is to avoid sleep() in the waiter thread.
[ 20.157753] ------------[ cut here ]------------
[ 20.158393] do not call blocking ops when !TASK_RUNNING; state=2 set at [<0000000096354225>] prepare_to_wait+0xcd/0x430
[ 20.159858] WARNING: CPU: 1 PID: 1152 at kernel/sched/core.c:7142 __might_sleep+0x149/0x1a0
...
[ 20.176110] __submit_merged_write_cond+0x191/0x310
[ 20.176739] f2fs_submit_merged_write+0x18/0x20
[ 20.177323] f2fs_wait_on_all_pages+0x269/0x2d0
[ 20.177899] ? block_operations+0x980/0x980
[ 20.178441] ? __kasan_check_read+0x11/0x20
[ 20.178975] ? finish_wait+0x260/0x260
[ 20.179488] ? percpu_counter_set+0x147/0x230
[ 20.180049] do_checkpoint+0x1757/0x2a50
[ 20.180558] f2fs_write_checkpoint+0x840/0xaf0
[ 20.181126] f2fs_sync_fs+0x287/0x4a0
Reported-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2020-08-03 20:54:58 -07:00
..
2020-03-27 09:29:56 +00:00
2020-04-20 15:45:22 -06:00
2020-04-20 15:45:22 -06:00
2020-06-09 18:17:14 +01:00
2020-03-13 21:08:17 -04:00
2019-08-30 07:27:17 -07:00
2020-04-20 15:45:22 -06:00
2020-06-05 16:19:28 -07:00
2020-06-01 15:45:27 -07:00
2020-06-01 13:22:53 +02:00
2020-06-05 16:40:53 -07:00
2020-05-05 09:22:21 -06:00
2020-06-01 15:45:27 -07:00
2020-04-20 15:45:22 -06:00
2020-06-01 12:10:17 -07:00
2020-04-27 09:34:55 +02:00
2019-09-03 09:30:56 -04:00
2020-06-05 16:43:16 -07:00
2020-06-01 15:45:27 -07:00
2020-02-23 21:59:42 +01:00
2019-08-30 07:27:17 -07:00
2020-06-02 20:16:55 -07:00
2020-06-09 11:24:59 -07:00
2019-11-11 09:21:59 -05:00
2020-06-09 09:39:14 -07:00
2020-06-09 10:04:47 -07:00
2020-08-03 20:54:58 -07:00
2020-06-04 19:06:25 -07:00
2019-08-30 07:27:17 -07:00
2020-06-03 16:27:18 -07:00
2020-06-09 15:48:24 -07:00
2020-06-08 12:47:09 -07:00
2020-06-02 15:29:19 -07:00
2020-05-22 08:45:46 -06:00
2020-03-29 23:23:00 +02:00
2020-06-06 10:08:17 -07:00
2020-06-09 09:39:14 -07:00
2020-06-05 16:19:28 -07:00
2020-06-02 15:29:19 -07:00
2020-06-05 16:19:28 -07:00
2020-02-07 14:48:37 -05:00
2020-06-02 20:11:35 -07:00
2020-06-09 09:39:14 -07:00
2020-02-04 03:05:26 +00:00
2019-08-30 07:27:17 -07:00
2020-06-02 10:59:11 -07:00
2019-05-21 10:50:46 +02:00
2020-06-02 10:59:08 -07:00
2020-06-05 16:19:28 -07:00
2019-05-21 10:50:46 +02:00
2020-06-04 13:51:54 -07:00
2020-06-02 12:21:36 -07:00
2020-06-05 16:19:28 -07:00
2020-06-02 10:59:07 -07:00
2019-07-19 10:42:02 -07:00
2020-06-05 16:44:36 -07:00
2020-06-09 15:40:50 -07:00
2020-06-10 16:05:54 -07:00
2020-06-01 16:18:46 -07:00
2019-08-30 07:27:17 -07:00
2020-06-02 10:59:07 -07:00
2020-04-27 02:07:40 -04:00
2020-02-07 14:48:37 -05:00
2020-06-04 13:53:10 -07:00
2020-04-20 15:45:22 -06:00
2020-06-02 12:21:36 -07:00
2020-06-05 14:05:57 -07:00
2020-04-20 15:45:22 -06:00
2019-12-10 22:29:58 -05:00
2020-06-02 10:59:11 -07:00
2020-06-02 15:29:19 -07:00
2019-09-19 09:42:37 -07:00
2020-03-25 11:50:48 +01:00
2020-05-07 08:45:47 -06:00
2020-05-12 16:44:00 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 13:50:13 -07:00
2020-06-09 09:39:14 -07:00
2019-07-19 10:42:02 -07:00
2019-12-08 19:10:50 -05:00
2020-06-03 23:16:55 -04:00
2020-05-07 16:55:47 -05:00
2020-06-10 16:02:54 -07:00
2020-06-10 16:02:54 -07:00
2020-06-04 19:18:29 -07:00
2020-06-10 16:02:54 -07:00
2020-06-04 19:18:29 -07:00
2020-06-04 19:18:29 -07:00
2020-06-02 15:37:03 -07:00
2020-06-02 10:59:07 -07:00
2020-05-14 16:44:23 +02:00
2020-06-05 13:45:21 -07:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:14 -07:00
2019-08-30 19:31:09 -04:00
2020-04-02 19:15:03 -07:00
2020-06-03 16:27:18 -07:00
2019-05-21 10:50:45 +02:00
2020-06-02 19:59:25 -07:00
2020-04-27 02:07:40 -04:00
2020-05-06 22:33:43 -04:00
2020-05-14 10:00:35 -07:00
2020-06-09 09:39:14 -07:00
2020-03-03 10:55:06 -05:00
2019-08-07 21:51:47 -04:00
2020-06-03 16:27:18 -07:00
2020-05-19 18:29:36 -04:00
2020-04-10 15:36:22 -07:00
2020-05-14 16:44:25 +02:00
2020-04-02 09:35:26 -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
2020-06-05 16:19:28 -07:00
2020-02-07 14:48:35 -05:00
2020-06-05 16:26:36 -07:00
2020-06-05 16:19:28 -07:00
2020-06-09 09:39:14 -07:00
2020-04-03 11:35:57 -06:00
2020-04-03 11:35:57 -06:00
2020-06-03 23:16:55 -04:00
2020-04-20 15:45:22 -06:00
2020-06-06 15:22:01 -07:00
2020-05-22 08:45:46 -06:00
2020-06-04 13:54:34 -07:00
2020-03-05 21:00:40 -05:00
2019-05-21 10:50:45 +02:00
2020-05-14 16:44:24 +02:00
2020-06-02 10:59:07 -07:00
2020-06-08 11:04:19 -07:00
2020-06-10 16:09:11 -07:00
2019-05-30 11:26:32 -07:00
2020-05-13 11:41:22 +02:00
2020-06-02 12:21:36 -07:00
2020-05-20 12:14:10 -04:00
2020-04-27 10:37:14 -04:00
2019-05-30 11:29:53 -07:00
2020-06-08 11:04:19 -07:00
2020-06-04 13:54:34 -07:00
2020-04-03 00:09:59 +11:00
2020-05-01 20:29:54 -04:00
2020-05-29 19:10:42 -04:00
2020-06-04 19:06:25 -07:00
2019-04-08 18:21:02 -05:00
2020-06-03 15:52:19 -07:00
2019-12-08 14:37:36 +01:00
2020-06-02 19:45:12 -07:00
2019-10-03 14:21:35 -07:00
2020-06-10 16:09:11 -07:00
2020-06-09 15:40:50 -07:00
2020-01-14 12:20:53 +01:00
2020-06-09 09:39:14 -07:00
2020-05-14 16:44:24 +02:00
2020-04-09 15:33:09 -04:00