Suhas Athani has uploaded this change for review.
FSAL_CEPH: Allow runtime configuration of Async I/O for write op
This change enhances FSAL_CEPH by allowing control of async
write I/O behavior via the async parameter in ganesha.conf.
Previously, ceph_fsal_write2() could issue non-blocking write
requests regardless of the configured async setting, making it
difficult to reliably disable async write behavior.
This commit refactors ceph_fsal_write2() to honor the CEPH config
stanza at runtime, enabling or disabling async I/O to work correctly,
based on the configured value of the async option.
Resulting behavior:
- CEPH stanza absent, Async I/O is disabled (default-safe behavior).
- CEPH stanza present with async = false, Async I/O is explicitly
disabled.
- CEPH stanza present with async = true, Async I/O is enabled,
allowing non-blocking read & write operations.
Change-Id: I3fc1dd5f80b44281fdd0017baa9d1515aa2036eb
Signed-off-by: Suhas Athani <Suhas.Athani@ibm.com>
---
M src/FSAL/FSAL_CEPH/handle.c
1 file changed, 23 insertions(+), 19 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/90/1228990/1
To view, visit change 1228990. To unsubscribe, or for help writing mail filters, visit settings.