Currently user space applications can easily take away all the rdma device specific resources such as AH, CQ, QP, MR etc. Due to which other applications in other cgroup or kernel space ULPs may not even get chance to allocate any rdma resources. This patch-set allows limiting rdma resources to set of processes. It extend device cgroup controller for limiting rdma device limits. With this patch, user verbs module queries rdma device cgroup controller to query process's limit to consume such resource. It uncharge resource counter after resource is being freed. It extends the task structure to hold the statistic information about process's rdma resource usage so that when process migrates from one to other controller, right amount of resources can be migrated from one to other cgroup. Future patches will support RDMA flows resource and will be enhanced further to enforce limit of other resources and capabilities. Parav Pandit (7): devcg: Added user option to rdma resource tracking. devcg: Added rdma resource tracking module. devcg: Added infrastructure for rdma device cgroup. devcg: Added rdma resource tracker object per task devcg: device cgroup's extension for RDMA resource. devcg: Added support to use RDMA device cgroup. devcg: Added Documentation of RDMA device cgroup. Documentation/cgroups/devices.txt | 32 ++- drivers/infiniband/core/uverbs_cmd.c | 139 +++++++++-- drivers/infiniband/core/uverbs_main.c | 39 +++- include/linux/device_cgroup.h | 53 +++++ include/linux/device_rdma_cgroup.h | 83 +++++++ include/linux/sched.h | 12 +- init/Kconfig | 12 + security/Makefile | 1 + security/device_cgroup.c | 119 +++++++--- security/device_rdma_cgroup.c | 422 ++++++++++++++++++++++++++++++++++ 10 files changed, 850 insertions(+), 62 deletions(-) create mode 100644 include/linux/device_rdma_cgroup.h create mode 100644 security/device_rdma_cgroup.c -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html