]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async/rdma: cosmetics by set member value in initialize list
authorChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 21 Jun 2019 09:06:57 +0000 (17:06 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:05 +0000 (10:45 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc

index ecca8d7a896e046ab4ffa01d223070d105eaaf39..846f8ad45a0fc98d9b4db59065bd726073e47488 100644 (file)
@@ -168,13 +168,12 @@ Infiniband::QueuePair::QueuePair(
   cm_id(cid),
   txcq(txcq),
   rxcq(rxcq),
-  initial_psn(0),
+  initial_psn(lrand48() & PSN_MSK),
   max_send_wr(tx_queue_len),
   max_recv_wr(rx_queue_len),
   q_key(q_key),
   dead(false)
 {
-  initial_psn = lrand48() & PSN_MSK;
   if (type != IBV_QPT_RC && type != IBV_QPT_UD && type != IBV_QPT_RAW_PACKET) {
     lderr(cct) << __func__ << " invalid queue pair type" << cpp_strerror(errno) << dendl;
     ceph_abort();