]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: mark client_force_lazyio as not runtime updatable 69531/head
authorXiubo Li <xiubo.li@clyso.com>
Wed, 17 Jun 2026 01:14:43 +0000 (09:14 +0800)
committerXiubo Li <xiubo.li@clyso.com>
Thu, 18 Jun 2026 06:19:10 +0000 (14:19 +0800)
The client_force_lazyio option is currently marked as supporting
runtime updates in the configuration schema, but this is misleading.

The value is read once during each file open/create and stored in
the file flags. There is no config observer registered to handle
dynamic updates, and there is no logic to propagate changes to the
already opened file handles.

This patch adds the NO_RUNTIME flag to the option definition to
correctly reflect reality.

Fixes: https://tracker.ceph.com/issues/77451
Signed-off-by: Xiubo Li <xiubo.li@clyso.com>
PendingReleaseNotes
doc/cephfs/lazyio.rst
src/common/options/mds-client.yaml.in

index 2e2a19fc25fee8855ab1c7ede167124cf108e5cd..b858940b1e2ea254476d21d15ac57d730752dfe8 100644 (file)
@@ -1,3 +1,9 @@
+* CephFS: The ``client_force_lazyio`` configuration option is now correctly marked
+  as not supporting runtime updates. Previously, the configuration schema indicated
+  this option could be changed at runtime, but changes had no effect on opened file
+  handlers in ceph-fuse or libcephfs clients because there is no logic to propagate
+  changes to open file handles.
+
 * RADOS: PG autoscaler allows overlapping roots. Each root receives a PG target based
   on its OSDs, with OSDs shared across multiple roots contributing proportionally
   less to each root's allocation.
index 01cb2704e5fb6ccfcae56f21db91f27b43a47945..cd6064ad4152ca5f94c5401dcd4a9aac53e44490 100644 (file)
@@ -14,7 +14,7 @@ Enable LazyIO
 LazyIO can be enabled in the following ways.
 
 - ``client_force_lazyio`` option enables LAZY_IO globally for libcephfs and
-  ceph-fuse mount.
+  ceph-fuse mount. This is strictly a startup flag.
 
 - ``ceph_lazyio(...)`` and ``ceph_ll_lazyio(...)`` enable LAZY_IO for file handle
   in libcephfs.
index 2e7ee29bc3bd21b74ee329ff441e5104d808b213..94d717dfbe903dd0cf09f98e19a7c2aa6923e193 100644 (file)
@@ -333,6 +333,8 @@ options:
   default: false
   services:
   - mds_client
+  flags:
+  - startup
 - name: fuse_use_invalidate_cb
   type: bool
   level: advanced