]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: add discard threads option, descriptions and flags
authorMatt Vandermeulen <matt@reenigne.net>
Thu, 8 Feb 2024 17:54:22 +0000 (13:54 -0400)
committerYite Gu <yitegu0@gmail.com>
Tue, 6 Aug 2024 09:50:06 +0000 (17:50 +0800)
Signed-off-by: Matt Vandermeulen <matt@reenigne.net>
(cherry picked from commit 4ae47bd7af6f6e1c4218c3e84db438dc0a9c404b)

src/common/options/global.yaml.in

index 9bab8af70633b661a849b60cf56cc604c6cc6296..b5f412d2275b1559aac7422047d8b0887989208d 100644 (file)
@@ -4033,15 +4033,39 @@ options:
   default: false
   with_legacy: true
 - name: bdev_enable_discard
+  desc: send discards to the block device
   type: bool
   level: advanced
   default: false
   with_legacy: true
+  flags:
+  - runtime
+  see_also:
+  - bdev_async_discard
+  - bdev_async_discard_threads
 - name: bdev_async_discard
-  type: bool
+  desc: send discards to the block device in one or more threads
+  type: uint
   level: advanced
   default: false
-  with_legacy: true
+  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: 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