why use _ucma_find_context in ucma_destroy_id?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, all

I found that in ucma_destroy_id when using struct ucma_context not use in pair.

1,
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/tree/drivers/infiniband/core/ucma.c#n611

in line 611 ,use _ucma_find_context, do not call ucma_get_ctx

2,
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/tree/drivers/infiniband/core/ucma.c#n629

in line 629, use ucma_put_ctx

will this cause an unexpect wait?



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux