int r = ibv_query_port(ctxt, port_num, port_attr);\r
if (r == -1) {\r
lderr(cct) << __func__ << " query port failed " << cpp_strerror(errno) << dendl;\r
- assert(0);\r
+ ceph_abort();\r
}\r
\r
lid = port_attr->lid;\r
r = ibv_query_gid(ctxt, port_num, 0, &gid);\r
if (r) {\r
lderr(cct) << __func__ << " query gid failed " << cpp_strerror(errno) << dendl;\r
- assert(0);\r
+ ceph_abort();\r
}\r
}\r
\r
DeviceList(CephContext *cct): device_list(ibv_get_device_list(&num)) {\r
if (device_list == NULL || num == 0) {\r
lderr(cct) << __func__ << " failed to get rdma device list. " << cpp_strerror(errno) << dendl;\r
- assert(0);\r
+ ceph_abort();\r
}\r
devices = new Device*[num];\r
\r
{\r
if (pd == NULL) {\r
lderr(cct) << __func__ << " failed to allocate infiniband protection domain: " << cpp_strerror(errno) << dendl;\r
- assert(0);\r
+ ceph_abort();\r
}\r
}\r
~ProtectionDomain() {\r