Skip to contentSkip to conversation

ksmbd uses ib_destroy_qp() instead of rdma_destroy_qp()

DISCUSSION Stefan Metzmacher 2 participants 3 messages May 28, 2025 – May 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Namjae,

I just found that you used ib_destroy_qp instead of rdma_destroy_qp in ksmbd, while rdma_create_qp() was used to create it.

Is there any specific reason for that?

The only thing that is different is that rdma_create_qp() takes a mutex around calling ib_destroy_qp(), which might be a reason for a potential problem.

Assuming there's no real reason I guess we should use rdma_destroy_qp in order to get trace_cm_qp_destroy().

Any comments?

metze

#1 lore raw

Using Namjae Jeon <[email protected]> now...

Am 28.05.25 um 18:19 schrieb Stefan Metzmacher:

Quoted 16 lines

Hi Namjae,

I just found that you used ib_destroy_qp instead of rdma_destroy_qp in ksmbd, while rdma_create_qp() was used to create it.

Is there any specific reason for that?

The only thing that is different is that rdma_create_qp() takes a mutex around calling ib_destroy_qp(), which might be a reason for a potential problem.

Assuming there's no real reason I guess we should use rdma_destroy_qp in order to get trace_cm_qp_destroy().

Any comments?

metze

maintainer
#2 lore raw
Quoted 5 lines · Stefan Metzmacher

Using Namjae Jeon <[email protected]> now...

Am 28.05.25 um 18:19 schrieb Stefan Metzmacher:

Quoted 1 line

Hi Namjae,

Hi Stefan,

Quoted 5 lines
Quoted 5 lines

I just found that you used ib_destroy_qp instead of rdma_destroy_qp in ksmbd, while rdma_create_qp() was used to create it.

Is there any specific reason for that?

There doesn't seem to be any special reason.

Quoted 8 lines
Quoted 8 lines

The only thing that is different is that rdma_create_qp() takes a mutex around calling ib_destroy_qp(), which might be a reason for a potential problem.

Assuming there's no real reason I guess we should use rdma_destroy_qp in order to get trace_cm_qp_destroy().

Any comments?

We can change it if there is no problem after testing it. Thanks!

Quoted 4 lines
Quoted 2 lines

metze