Re: [PATCH v7 rdma-next 2/7] RDMA/core: Create mmap database and cookie helper functions

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

 



On 25/08/2019 11:36, Michal Kalderon wrote:
>>> diff --git a/drivers/infiniband/core/rdma_core.c
>>> b/drivers/infiniband/core/rdma_core.c
>>> index ccf4d069c25c..7166741834c8 100644
>>> --- a/drivers/infiniband/core/rdma_core.c
>>> +++ b/drivers/infiniband/core/rdma_core.c
>>> @@ -817,6 +817,7 @@ static void ufile_destroy_ucontext(struct
>> ib_uverbs_file *ufile,
>>>  	rdma_restrack_del(&ucontext->res);
>>>
>>>  	ib_dev->ops.dealloc_ucontext(ucontext);
>>> +	rdma_user_mmap_entries_remove_free(ucontext);
>>
>> Why did you switch the order again?
> To enable drivers to remove the entries from the mmap_xa otherwise entires_remove_free
> Will run into a mmap_xa that is not empty. I should have mentioned this in the cover letter. 

I don't understand.
Do you expect drivers to explicitly drain the mmap xarray during
dealloc_ucontext? I didn't see that in the EFA patch.

I still think the xarray should be cleared prior to calling the driver's
dealloc_ucontext.



[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