From 4aa7f3d7c2424e83e5c3df8bed60a38b05e17e51 Mon Sep 17 00:00:00 2001 From: skanta Date: Tue, 5 Nov 2024 16:20:59 +0530 Subject: [PATCH] Revert "common: remove lingering bdev_async_discard option" This reverts commit 519730b0b11124cad52e23f37bc1c5f059eaefdf. The commit was merged prematurely without testing. Signed-off-by: Srinivasa Bharath Kanta --- src/common/options/global.yaml.in | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/common/options/global.yaml.in b/src/common/options/global.yaml.in index 74bf403f09b0f..91225413f2eb8 100644 --- a/src/common/options/global.yaml.in +++ b/src/common/options/global.yaml.in @@ -4023,18 +4023,31 @@ options: flags: - runtime see_also: + - bdev_async_discard + - bdev_async_discard_threads +- name: bdev_async_discard + desc: send discards to the block device in one or more threads + type: uint + level: advanced + default: false + with_legacy: false + flags: + - runtime + see_also: + - bdev_enable_discard - bdev_async_discard_threads - name: bdev_async_discard_threads desc: number of discard threads used to issue discards to the device type: uint level: advanced - default: 0 - min: 0 + default: 1 + min: 1 with_legacy: false flags: - runtime see_also: - bdev_enable_discard + - bdev_async_discard - name: bdev_flock_retry_interval type: float level: advanced -- 2.39.5