Jaegeuk Kim
f47ed3b284
f2fs: don't set RO when shutting down f2fs
...
[ Upstream commit 3bdb7f161697e2d5123b89fe1778ef17a44858e7 ]
Shutdown does not check the error of thaw_super due to readonly, which
causes a deadlock like below.
f2fs_ioc_shutdown(F2FS_GOING_DOWN_FULLSYNC) issue_discard_thread
- bdev_freeze
- freeze_super
- f2fs_stop_checkpoint()
- f2fs_handle_critical_error - sb_start_write
- set RO - waiting
- bdev_thaw
- thaw_super_locked
- return -EINVAL, if sb_rdonly()
- f2fs_stop_discard_thread
-> wait for kthread_stop(discard_thread);
Reported-by: "Light Hsieh (謝明燈)" <Light.Hsieh@mediatek.com>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-27 13:52:18 +02:00
..
2024-06-16 13:51:01 +02:00
2024-03-12 20:32:19 -07:00
2024-02-26 11:36:28 +01:00
2024-06-16 13:50:54 +02:00
2024-01-11 20:11:35 -08:00
2024-05-07 11:02:37 -04:00
2024-03-12 20:32:19 -07:00
2024-03-12 20:32:19 -07:00
2024-06-21 14:40:37 +02:00
2024-06-21 14:40:16 +02:00
2024-04-11 22:56:28 +02:00
2024-03-12 20:32:19 -07:00
2024-03-27 13:17:15 +01:00
2024-03-12 13:17:36 -07:00
2024-03-07 22:08:15 +00:00
2023-12-28 04:57:57 -08:00
2024-05-30 09:44:15 +02:00
2024-05-30 09:44:04 +02:00
2024-02-25 09:43:39 +01:00
2024-02-27 11:21:33 +01:00
2024-06-16 13:50:54 +02:00
2024-04-25 21:59:59 +09:00
2024-01-23 10:58:56 -05:00
2024-03-13 14:30:58 -07:00
2024-06-27 13:52:17 +02:00
2024-06-27 13:52:18 +02:00
2024-03-14 18:03:09 -07:00
2024-03-12 20:32:19 -07:00
2024-06-12 11:39:21 +02:00
2024-05-30 09:44:24 +02:00
2023-12-29 11:58:34 -08:00
2024-03-11 09:38:17 -07:00
2023-12-21 12:51:00 -05:00
2024-03-12 20:32:19 -07:00
2024-03-11 09:38:17 -07:00
2024-06-16 13:51:04 +02:00
2024-03-12 20:32:19 -07:00
2024-01-04 23:42:21 -05:00
2024-05-30 09:44:06 +02:00
2024-06-21 14:40:13 +02:00
2024-04-14 06:55:46 -04:00
2024-03-12 14:27:37 -07:00
2024-02-27 11:21:32 +01:00
2024-06-12 11:39:44 +02:00
2024-06-21 14:40:17 +02:00
2024-06-21 14:40:33 +02:00
2024-06-16 13:51:15 +02:00
2024-03-07 12:59:51 +01:00
2024-06-12 11:39:29 +02:00
2024-06-21 14:40:34 +02:00
2024-05-30 09:44:03 +02:00
2024-02-14 15:57:53 -05:00
2024-06-12 11:39:15 +02:00
2024-06-21 14:40:33 +02:00
2024-03-09 12:33:22 -08:00
2024-03-12 20:32:19 -07:00
2024-02-27 11:21:32 +01:00
2024-03-12 20:32:19 -07:00
2024-01-26 09:08:16 -08:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-06-21 14:40:26 +02:00
2024-04-16 15:39:50 -07:00
2024-04-11 15:16:48 +02:00
2024-02-27 11:21:31 +01:00
2024-06-21 14:40:11 +02:00
2024-03-21 15:09:29 -07:00
2024-06-27 13:52:18 +02:00
2024-03-12 20:32:19 -07:00
2024-04-03 16:06:39 +02:00
2024-06-16 13:50:56 +02:00
2024-04-06 09:14:18 -07:00
2024-04-10 07:23:47 +09:00
2024-04-05 11:20:28 +02:00
2023-11-14 08:31:31 -05:00
2024-03-12 20:03:34 -07:00
2024-02-02 13:11:50 +01:00
2024-03-21 20:20:52 -07:00
2023-10-30 19:28:19 -10:00
2024-03-11 10:07:03 -07:00
2023-11-02 20:53:31 -10:00
2024-03-06 10:52:12 +01:00
2023-11-18 15:00:01 +01:00
2024-03-11 09:38:17 -07:00
2024-02-06 14:31:05 +01:00
2024-02-08 10:12:26 +01:00
2024-05-05 14:00:48 -07:00
2024-05-30 09:44:56 +02:00
2024-03-11 10:07:03 -07:00
2024-01-22 15:33:38 +01:00
2024-03-12 20:03:34 -07:00
2023-12-12 14:24:14 +01:00
2024-02-02 13:11:50 +01:00
2024-06-27 13:52:11 +02:00
2024-03-15 09:00:09 -07:00
2024-03-13 12:53:53 -07:00
2024-04-09 12:03:49 +02:00
2024-03-14 17:43:30 -07:00
2024-05-30 09:44:06 +02:00
2024-02-20 09:53:33 +01:00
2024-03-11 10:21:06 -07:00
2024-02-27 11:21:31 +01:00
2024-02-08 10:12:37 +01:00
2023-11-18 14:56:16 +01:00
2024-02-06 14:31:05 +01:00
2024-04-03 10:21:32 -07:00
2024-02-07 21:16:29 +01:00
2024-03-13 12:53:53 -07:00
2024-03-12 20:03:34 -07:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2023-11-18 14:56:16 +01:00
2024-03-12 20:03:34 -07:00
2023-11-18 14:56:16 +01:00
2023-12-12 16:20:02 +01:00
2023-12-12 16:20:02 +01:00
2024-02-06 17:07:21 +01:00
2024-02-20 09:23:52 +01:00
2023-12-12 16:20:02 +01:00
2024-01-08 10:57:34 -08:00
2024-03-27 13:17:15 +01:00
2023-12-28 04:57:57 -08:00
2024-05-05 17:28:04 -07:00
2024-02-15 23:43:47 -05:00