]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA: Remove outdated comments referencing hfi1_destroy_qp()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Mon, 23 Mar 2026 13:44:50 +0000 (21:44 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Mar 2026 17:47:44 +0000 (13:47 -0400)
The function hfi1_destroy_qp() was removed in commit
75261cc6ab66 ("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>
drivers/infiniband/hw/hfi1/qp.c
drivers/infiniband/sw/rdmavt/mcast.c

index f3d8c0c193ac188f0ac1d97124bb02b972f17376..3a0caee956076c8c9925bc43b671841bf7b428b7 100644 (file)
@@ -404,7 +404,6 @@ void hfi1_qp_wakeup(struct rvt_qp *qp, u32 flag)
                hfi1_qp_schedule(qp);
        }
        spin_unlock_irqrestore(&qp->s_lock, flags);
-       /* Notify hfi1_destroy_qp() if it is waiting. */
        rvt_put_qp(qp);
 }
 
index 1fda344d2056395fa6f0537359224505c6fc0791..b41fe4c069dd3950fcb6d88b4d2ecf659d0261f5 100644 (file)
@@ -49,7 +49,6 @@ static void rvt_mcast_qp_free(struct rvt_mcast_qp *mqp)
 {
        struct rvt_qp *qp = mqp->qp;
 
-       /* Notify hfi1_destroy_qp() if it is waiting. */
        rvt_put_qp(qp);
 
        kfree(mqp);