Commit 9566b054 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/srp: Remove second argument of srp_destroy_qp()

This patch does not change any functionality.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 8a0d18c6
...@@ -464,20 +464,20 @@ static struct srp_fr_pool *srp_alloc_fr_pool(struct srp_target_port *target) ...@@ -464,20 +464,20 @@ static struct srp_fr_pool *srp_alloc_fr_pool(struct srp_target_port *target)
/** /**
* srp_destroy_qp() - destroy an RDMA queue pair * srp_destroy_qp() - destroy an RDMA queue pair
* @qp: RDMA queue pair. * @ch: SRP RDMA channel.
* *
* Drain the qp before destroying it. This avoids that the receive * Drain the qp before destroying it. This avoids that the receive
* completion handler can access the queue pair while it is * completion handler can access the queue pair while it is
* being destroyed. * being destroyed.
*/ */
static void srp_destroy_qp(struct srp_rdma_ch *ch, struct ib_qp *qp) static void srp_destroy_qp(struct srp_rdma_ch *ch)
{ {
spin_lock_irq(&ch->lock); spin_lock_irq(&ch->lock);
ib_process_cq_direct(ch->send_cq, -1); ib_process_cq_direct(ch->send_cq, -1);
spin_unlock_irq(&ch->lock); spin_unlock_irq(&ch->lock);
ib_drain_qp(qp); ib_drain_qp(ch->qp);
ib_destroy_qp(qp); ib_destroy_qp(ch->qp);
} }
static int srp_create_ch_ib(struct srp_rdma_ch *ch) static int srp_create_ch_ib(struct srp_rdma_ch *ch)
...@@ -550,7 +550,7 @@ static int srp_create_ch_ib(struct srp_rdma_ch *ch) ...@@ -550,7 +550,7 @@ static int srp_create_ch_ib(struct srp_rdma_ch *ch)
} }
if (ch->qp) if (ch->qp)
srp_destroy_qp(ch, ch->qp); srp_destroy_qp(ch);
if (ch->recv_cq) if (ch->recv_cq)
ib_free_cq(ch->recv_cq); ib_free_cq(ch->recv_cq);
if (ch->send_cq) if (ch->send_cq)
...@@ -617,7 +617,7 @@ static void srp_free_ch_ib(struct srp_target_port *target, ...@@ -617,7 +617,7 @@ static void srp_free_ch_ib(struct srp_target_port *target,
ib_destroy_fmr_pool(ch->fmr_pool); ib_destroy_fmr_pool(ch->fmr_pool);
} }
srp_destroy_qp(ch, ch->qp); srp_destroy_qp(ch);
ib_free_cq(ch->send_cq); ib_free_cq(ch->send_cq);
ib_free_cq(ch->recv_cq); ib_free_cq(ch->recv_cq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment