The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 ------> commit fa148c9e327741c7ea7df8e853ab3854c4583913 Author: Kirill Tkhai <ktk...@virtuozzo.com> Date: Mon Sep 20 19:59:23 2021 +0300
dm: Call io_hints even for device-less drivers Ploop wants to set proper discard_granularity despite it is not mapped on real device. Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> ===================== Patchset description: dm-ploop: Kill loop Intermediate patches can't be base for bisect. In scope of https://jira.sw.ru/browse/PSBM-123654 Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> --- drivers/md/dm-table.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 0543cdf89e92..e6b55f067797 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1668,8 +1668,11 @@ int dm_calculate_queue_limits(struct dm_table *table, ti = dm_table_get_target(table, i); - if (!ti->type->iterate_devices) + if (!ti->type->iterate_devices) { + if (ti->type->io_hints) + ti->type->io_hints(ti, &ti_limits); goto combine_limits; + } /* * Combine queue limits of all the devices this target uses. _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel