From: Changcheng Liu Date: Fri, 21 Jun 2019 09:06:57 +0000 (+0800) Subject: msg/async/rdma: cosmetics by set member value in initialize list X-Git-Tag: v15.1.0~1781^2~32 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b4596011f559318301ff8020f1c513d60c3dcde8;p=ceph-ci.git msg/async/rdma: cosmetics by set member value in initialize list Signed-off-by: Changcheng Liu --- diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index ecca8d7a896..846f8ad45a0 100644 --- a/src/msg/async/rdma/Infiniband.cc +++ b/src/msg/async/rdma/Infiniband.cc @@ -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();