ksmbd uses ib_destroy_qp() instead of rdma_destroy_qp()
Subsystems (2)
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
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_qpinstead ofrdma_destroy_qpin ksmbd, whilerdma_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 callingib_destroy_qp(), which might be a reason for a potential problem.Assuming there's no real reason I guess we should use
rdma_destroy_qpin order to gettrace_cm_qp_destroy().Any comments?
metze
Namjae Jeon
maintainerQuoted 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_qpinstead ofrdma_destroy_qpin ksmbd, whilerdma_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 callingib_destroy_qp(), which might be a reason for a potential problem.Assuming there's no real reason I guess we should use
rdma_destroy_qpin order to gettrace_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