Re: [PATCH 3/7] RDMAVT: Fix synchronization around percpu_ref

2018-03-07 Thread Dennis Dalessandro
On 3/6/2018 12:33 PM, Tejun Heo wrote: rvt_mregion uses percpu_ref for reference counting and RCU to protect accesses from lkey_table. When a rvt_mregion needs to be freed, it first gets unregistered from lkey_table and then rvt_check_refs() is called to wait for in-flight usages before the

Re: [PATCH 3/7] RDMAVT: Fix synchronization around percpu_ref

2018-03-07 Thread Dennis Dalessandro
On 3/6/2018 12:33 PM, Tejun Heo wrote: rvt_mregion uses percpu_ref for reference counting and RCU to protect accesses from lkey_table. When a rvt_mregion needs to be freed, it first gets unregistered from lkey_table and then rvt_check_refs() is called to wait for in-flight usages before the

[PATCH 3/7] RDMAVT: Fix synchronization around percpu_ref

2018-03-06 Thread Tejun Heo
rvt_mregion uses percpu_ref for reference counting and RCU to protect accesses from lkey_table. When a rvt_mregion needs to be freed, it first gets unregistered from lkey_table and then rvt_check_refs() is called to wait for in-flight usages before the rvt_mregion is freed. rvt_check_refs()

[PATCH 3/7] RDMAVT: Fix synchronization around percpu_ref

2018-03-06 Thread Tejun Heo
rvt_mregion uses percpu_ref for reference counting and RCU to protect accesses from lkey_table. When a rvt_mregion needs to be freed, it first gets unregistered from lkey_table and then rvt_check_refs() is called to wait for in-flight usages before the rvt_mregion is freed. rvt_check_refs()