Mikulas Patocka
da8b4fc1f6
dm integrity: only allocate recalculate buffer when needed
...
dm-integrity preallocated 8MiB buffer for recalculating in the
constructor and freed it in the destructor. This wastes memory when
the user has many dm-integrity devices.
Fix dm-integrity so that the buffer is only allocated when
recalculation is in progress; allocate the buffer at the beginning of
integrity_recalc() and free it at the end.
Note that integrity_recalc() doesn't hold any locks when allocating
the buffer, so it shouldn't cause low-memory deadlock.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
2023-06-27 16:02:18 -04:00
..
2023-06-15 07:32:55 -06:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:06 -05:00
2021-10-27 16:53:47 -04:00
2023-03-30 15:57:51 -04:00
2023-03-30 15:57:51 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-03-28 16:20:17 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-12 08:04:05 -06:00
2021-04-19 13:20:31 -04:00
2020-03-27 14:42:51 -04:00
2023-06-12 08:04:05 -06:00
2023-06-16 18:24:13 -04:00
2023-06-16 18:24:13 -04:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-06-05 10:57:40 -06:00
2023-06-27 16:02:18 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-06-23 10:31:52 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-06-13 15:25:13 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:07 -05:00
2023-06-12 08:04:05 -06:00
2023-03-16 13:37:06 -04:00
2023-03-16 13:37:06 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:09:08 -04:00
2023-02-14 14:23:08 -05:00
2023-06-12 08:04:05 -06:00
2023-04-11 12:01:01 -04:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:06 -05:00
2023-06-16 18:24:14 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2022-09-07 16:37:27 -07:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-06-16 18:24:13 -04:00
2023-05-31 09:50:02 -06:00
2021-06-04 12:07:24 -04:00
2023-04-11 12:09:08 -04:00
2022-07-14 12:14:31 -06:00
2023-06-16 18:24:13 -04:00
2023-06-16 18:24:14 -04:00
2023-03-15 12:18:07 -06:00
2022-08-02 14:38:59 -07:00
2023-06-05 10:56:46 -06:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:39 -07:00
2018-10-18 09:36:35 -07:00
2022-02-04 07:43:18 -07:00
2023-04-13 22:20:24 -07:00
2020-05-13 12:02:23 -07:00
2023-06-13 15:25:39 -07:00
2018-05-30 15:33:32 -06:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:44 -07:00
2023-04-13 22:20:24 -07:00
2019-09-13 13:10:05 -07:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:39 -07:00
2023-06-13 15:25:39 -07:00
2022-08-02 17:14:31 -06:00
2023-05-31 09:50:02 -06:00
2023-06-13 15:25:41 -07:00
2023-06-13 15:25:39 -07:00
2023-06-13 15:25:44 -07:00
2023-06-13 15:25:39 -07:00