Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Haggai Eran
On 08/09/2015 13:22, Parav Pandit wrote: > On Tue, Sep 8, 2015 at 2:10 PM, Haggai Eran wrote: >> On 07/09/2015 23:38, Parav Pandit wrote: >>> +static void init_ucontext_lists(struct ib_ucontext *ucontext) >>> +{ >>> + INIT_LIST_HEAD(>pd_list); >>> + INIT_LIST_HEAD(>mr_list); >>> +

Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Parav Pandit
On Tue, Sep 8, 2015 at 2:10 PM, Haggai Eran wrote: > On 07/09/2015 23:38, Parav Pandit wrote: >> +static void init_ucontext_lists(struct ib_ucontext *ucontext) >> +{ >> + INIT_LIST_HEAD(>pd_list); >> + INIT_LIST_HEAD(>mr_list); >> + INIT_LIST_HEAD(>mw_list); >> +

Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Haggai Eran
On 07/09/2015 23:38, Parav Pandit wrote: > +static void init_ucontext_lists(struct ib_ucontext *ucontext) > +{ > + INIT_LIST_HEAD(>pd_list); > + INIT_LIST_HEAD(>mr_list); > + INIT_LIST_HEAD(>mw_list); > + INIT_LIST_HEAD(>cq_list); > + INIT_LIST_HEAD(>qp_list); > +

Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Haggai Eran
On 07/09/2015 23:38, Parav Pandit wrote: > +static void init_ucontext_lists(struct ib_ucontext *ucontext) > +{ > + INIT_LIST_HEAD(>pd_list); > + INIT_LIST_HEAD(>mr_list); > + INIT_LIST_HEAD(>mw_list); > + INIT_LIST_HEAD(>cq_list); > + INIT_LIST_HEAD(>qp_list); > +

Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Parav Pandit
On Tue, Sep 8, 2015 at 2:10 PM, Haggai Eran wrote: > On 07/09/2015 23:38, Parav Pandit wrote: >> +static void init_ucontext_lists(struct ib_ucontext *ucontext) >> +{ >> + INIT_LIST_HEAD(>pd_list); >> + INIT_LIST_HEAD(>mr_list); >> + INIT_LIST_HEAD(>mw_list); >> +

Re: [PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-08 Thread Haggai Eran
On 08/09/2015 13:22, Parav Pandit wrote: > On Tue, Sep 8, 2015 at 2:10 PM, Haggai Eran wrote: >> On 07/09/2015 23:38, Parav Pandit wrote: >>> +static void init_ucontext_lists(struct ib_ucontext *ucontext) >>> +{ >>> + INIT_LIST_HEAD(>pd_list); >>> +

[PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-07 Thread Parav Pandit
RDMA uverbs modules now queries associated device cgroup rdma controller before allocating device resources and uncharge them while freeing rdma device resources. Since fput() sequence can free the resources from the workqueue context (instead of task context which allocated the resource), it

[PATCH 6/7] devcg: Added support to use RDMA device cgroup.

2015-09-07 Thread Parav Pandit
RDMA uverbs modules now queries associated device cgroup rdma controller before allocating device resources and uncharge them while freeing rdma device resources. Since fput() sequence can free the resources from the workqueue context (instead of task context which allocated the resource), it