]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: coroutinize SegmentManager::get_segment_manager()
authorKefu Chai <k.chai@proxmox.com>
Mon, 11 May 2026 04:43:47 +0000 (12:43 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 12 May 2026 03:03:03 +0000 (11:03 +0800)
commit458368c1b88d3d028231dc91e2d323323d87623f
tree6e96a63c133592229dc4c982dbda8c42eafcc112
parentf0bc148defb1fa31a320ab107e841dbf005cb647
crimson: coroutinize SegmentManager::get_segment_manager()

this change was inspired by following warning:

```
[1/3] Building CXX object src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/segment_manager.cc.o
/home/kefu/dev/ceph/src/crimson/os/seastore/segment_manager.cc:45:15: warning: lambda capture 'FNAME' is not used [-Wunused-lambda-capture]
   45 |       ).then([FNAME,
      |               ^
```

but we went further by coroutinize the whole method. because the return
value of ioctl() is not checked before this change, and clang correctly
flagged this with a warning, we marker it with `[[maybe_unused]]`, we
will fix it in a separate change.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/os/seastore/segment_manager.cc