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

1  2 
src/SimpleRADOSStriper.cc

index d60ffcbd3cf302d6290d8cbf40b310ba545b805a,773b08c7fae14bc25b9171a3d0efdb39e4a1ba09..2eef846541d69c5bbec73f54ca856a36acb6452b
@@@ -508,18 -307,13 +509,19 @@@ 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();