Filipe Manana
3d770d44dd
btrfs: avoid monopolizing a core when activating a swap file
...
commit 2c8507c63f5498d4ee4af404a8e44ceae4345056 upstream.
During swap activation we iterate over the extents of a file and we can
have many thousands of them, so we can end up in a busy loop monopolizing
a core. Avoid this by doing a voluntary reschedule after processing each
extent.
CC: stable@vger.kernel.org # 5.4+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-09 13:23:33 +01:00
..
2024-05-17 11:43:53 +02:00
2023-02-06 07:52:36 +01:00
2024-06-16 13:28:48 +02:00
2023-09-23 11:00:02 +02:00
2019-08-30 07:27:17 -07:00
2021-01-06 14:48:39 +01:00
2025-01-09 13:23:33 +01:00
2024-03-06 14:36:10 +00:00
2024-11-08 16:20:35 +01:00
2024-12-14 19:44:21 +01:00
2023-03-11 16:43:56 +01:00
2023-01-18 11:41:09 +01:00
2019-11-23 21:44:49 -05:00
2021-09-12 08:56:38 +02:00
2023-09-23 10:59:40 +02:00
2022-02-01 17:24:34 +01:00
2023-09-23 10:59:55 +02:00
2024-06-16 13:28:32 +02:00
2025-01-09 13:23:28 +01:00
2019-08-30 07:27:17 -07:00
2025-01-09 13:23:27 +01:00
2019-11-10 11:56:05 -05:00
2023-09-23 11:00:04 +02:00
2024-12-14 19:44:35 +01:00
2024-12-14 19:44:54 +01:00
2024-11-08 16:20:47 +01:00
2019-08-30 07:27:17 -07:00
2021-09-22 12:26:25 +02:00
2024-09-12 11:03:51 +02:00
2024-09-04 13:14:54 +02:00
2024-08-19 05:33:36 +02:00
2024-12-14 19:44:22 +01:00
2021-04-14 08:24:14 +02:00
2019-08-30 08:11:25 -07:00
2024-03-06 14:36:10 +00:00
2024-03-01 13:13:35 +01:00
2024-04-13 12:51:38 +02:00
2024-11-08 16:20:40 +01:00
2024-12-14 19:44:56 +01:00
2024-12-14 19:44:52 +01:00
2024-02-23 08:25:03 +01:00
2023-09-23 10:59:48 +02:00
2022-04-15 14:18:35 +02:00
2025-01-09 13:23:29 +01:00
2020-12-30 11:51:22 +01:00
2025-01-09 13:23:30 +01:00
2025-01-09 13:23:29 +01:00
2023-09-23 10:59:38 +02:00
2023-07-27 08:37:26 +02:00
2022-11-25 17:42:22 +01:00
2024-12-14 19:44:56 +01:00
2023-06-09 10:29:01 +02:00
2024-06-16 13:28:32 +02:00
2024-07-18 11:40:49 +02:00
2024-12-14 19:44:43 +01:00
2024-12-14 19:44:21 +01:00
2024-02-23 08:24:55 +01:00
2021-09-30 10:09:26 +02:00
2019-08-30 07:27:17 -07:00
2024-12-14 19:44:42 +01:00
2020-10-29 09:57:53 +01:00
2023-09-23 10:59:40 +02:00
2020-08-26 10:40:51 +02:00
2024-09-12 11:03:55 +02:00
2024-05-02 16:18:32 +02:00
2024-04-13 12:51:38 +02:00
2023-09-23 11:00:06 +02:00
2024-12-14 19:44:41 +01:00
2024-11-08 16:20:50 +01:00
2020-08-21 13:05:37 +02:00
2024-12-14 19:44:55 +01:00
2023-09-23 10:59:55 +02:00
2024-12-19 18:05:03 +01:00
2024-04-13 12:51:29 +02:00
2023-09-23 11:00:06 +02:00
2023-01-18 11:41:46 +01:00
2024-09-04 13:14:54 +02:00
2021-10-06 15:42:35 +02:00
2023-01-18 11:41:46 +01:00
2024-09-04 13:14:53 +02:00
2024-01-08 11:29:48 +01:00
2022-11-25 17:42:22 +01:00
2023-01-18 11:41:25 +01:00
2024-02-23 08:25:15 +01:00
2020-12-11 13:23:30 +01:00
2020-10-29 09:57:45 +01:00
2022-06-14 18:11:41 +02:00
2024-07-27 10:38:32 +02:00
2021-04-14 08:24:11 +02:00
2020-01-12 12:21:37 +01:00
2023-09-23 10:59:40 +02:00
2025-01-09 13:23:32 +01:00
2024-11-08 16:20:40 +01:00
2024-11-08 16:20:34 +01:00
2024-03-26 18:22:13 -04:00
2022-05-25 09:14:34 +02:00
2024-09-04 13:14:50 +02:00
2020-04-17 10:50:21 +02:00
2023-07-27 08:37:25 +02:00
2019-09-12 21:06:14 -04:00
2023-05-17 11:35:58 +02:00
2024-11-08 16:20:34 +01:00
2023-07-27 08:37:26 +02:00
2024-06-16 13:28:48 +02:00
2019-12-17 19:55:30 +01:00
2019-09-18 16:59:14 -07:00
2023-01-18 11:40:55 +01:00
2024-09-04 13:15:02 +02:00
2019-09-18 16:59:14 -07:00
2023-01-18 11:41:59 +01:00
2020-01-17 19:48:21 +01:00
2024-02-23 08:24:49 +01:00
2024-11-08 16:20:26 +01:00
2024-07-05 09:08:31 +02:00
2021-08-12 13:21:02 +02:00
2023-01-18 11:41:44 +01:00
2021-03-17 17:03:33 +01:00
2019-09-06 21:28:49 +02:00
2020-02-11 04:35:23 -08:00
2021-04-21 12:56:16 +02:00
2024-03-26 18:22:13 -04:00
2021-07-20 16:10:54 +02:00
2022-09-05 10:27:47 +02:00
2022-10-17 17:24:32 +02:00
2022-04-27 13:50:48 +02:00
2023-05-30 12:44:07 +01:00
2024-11-08 16:20:26 +01:00
2023-12-08 08:44:27 +01:00
2022-10-26 13:22:21 +02:00
2020-02-11 04:35:12 -08:00
2023-01-18 11:40:53 +01:00