Skip to content

Commit adc09d7

Browse files
Kexin Sunrleon
authored andcommitted
RDMA: Remove outdated comments referencing hfi1_destroy_qp()
The function hfi1_destroy_qp() was removed in commit 75261cc ("staging/rdma/hfi1: Remove destroy qp verb") in favor of the rdmavt generic rvt_destroy_qp(). Two comments still reference hfi1_destroy_qp() as the waiter that rvt_put_qp() will wake up. As Leon Romanovsky noted, these comments add no value. Remove them. Suggested-by: Leon Romanovsky <leon@kernel.org> Assisted-by: unnamed:deepseek-v3.2 coccinelle Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn> Link: https://patch.msgid.link/20260323134450.2478-1-kexinsun@smail.nju.edu.cn Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 2f49e15 commit adc09d7

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/infiniband/hw/hfi1/qp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ void hfi1_qp_wakeup(struct rvt_qp *qp, u32 flag)
404404
hfi1_qp_schedule(qp);
405405
}
406406
spin_unlock_irqrestore(&qp->s_lock, flags);
407-
/* Notify hfi1_destroy_qp() if it is waiting. */
408407
rvt_put_qp(qp);
409408
}
410409

drivers/infiniband/sw/rdmavt/mcast.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ static void rvt_mcast_qp_free(struct rvt_mcast_qp *mqp)
4949
{
5050
struct rvt_qp *qp = mqp->qp;
5151

52-
/* Notify hfi1_destroy_qp() if it is waiting. */
5352
rvt_put_qp(qp);
5453

5554
kfree(mqp);

0 commit comments

Comments
 (0)