]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Use signaling compatible with POSIX 42212/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Jul 2021 10:51:12 +0000 (12:51 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 9 Jul 2021 13:39:42 +0000 (15:39 +0200)
FreeBSD does not have signal_t.
Linux specifies also to use `sigval` as POSIX compliant.

tracker: https://tracker.ceph.com/issues/51610
fixes: https://github.com/ceph/ceph/pull/36266
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/rgw_d3n_cacherequest.h
src/rgw/rgw_d3n_datacache.cc

index 1825d0cb0ff174adb10a0c07833dfc2e7ecf72d6..41e026bcd34538f8b2c94c6b375d9ec7613199ae 100644 (file)
@@ -76,7 +76,7 @@ struct D3nL1CacheRequest {
       return 0;
     }
 
-    static void libaio_cb_aio_dispatch(sigval_t sigval) {
+    static void libaio_cb_aio_dispatch(sigval sigval) {
       lsubdout(g_ceph_context, rgw_datacache, 20) << "D3nDataCache: " << __func__ << "()" << dendl;
       auto p = std::unique_ptr<Completion>{static_cast<Completion*>(sigval.sival_ptr)};
       auto op = std::move(p->user_data);
index 37012e5455c30a47d79f2cfe9dbd4d19eb9907ab..e2ad497dae977029908bedcdfafd57754c650d65 100644 (file)
@@ -144,7 +144,7 @@ int D3nDataCache::d3n_io_write(bufferlist& bl, unsigned int len, std::string oid
   return r;
 }
 
-void d3n_libaio_write_cb(sigval_t sigval)
+void d3n_libaio_write_cb(sigval sigval)
 {
   lsubdout(g_ceph_context, rgw_datacache, 30) << "D3nDataCache: " << __func__ << "()" << dendl;
   D3nCacheAioWriteRequest* c = static_cast<D3nCacheAioWriteRequest*>(sigval.sival_ptr);