]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge PR #69195 into wip-pdonnell-testing-20260606.015015-main
authorPatrick Donnelly <pdonnell@ibm.com>
Sat, 6 Jun 2026 01:50:19 +0000 (21:50 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Sat, 6 Jun 2026 01:50:19 +0000 (21:50 -0400)
* refs/pull/69195/head:
SimpleRADOSStriper: retrieve AIO return values with get_return_value()

1  2 
src/SimpleRADOSStriper.cc

index db32237da55596840b92874c984875991e8511fc,773b08c7fae14bc25b9171a3d0efdb39e4a1ba09..ab44946f6190c7ec9612927ae45d87cf7736d819
@@@ -508,16 -307,13 +509,17 @@@ int SimpleRADOSStriper::shrink_alloc(ui
      offset += ext.len;
    }
  
 +  int aio_rc = 0;
    for (auto& aiocp : removes) {
-     if (int rc = aiocp->wait_for_complete(); rc < 0 && rc != -ENOENT) {
+     aiocp->wait_for_complete();
+     if (int rc = aiocp->get_return_value(); rc < 0 && rc != -ENOENT) {
        d(1) << " aio_remove failed: " << cpp_strerror(rc) << dendl;
 -      return rc;
 +      if (aio_rc == 0) aio_rc = rc;
      }
    }
 +  if (aio_rc != 0) {
 +    return aio_rc;
 +  }
  
    auto ext = get_first_extent();
    auto op = librados::ObjectWriteOperation();