From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next] IB/core: Simplify rdma cgroup registration Date: Fri, 18 Jan 2019 13:44:16 -0700 Message-ID: <20190118204416.GA7101@ziepe.ca> References: <20190117181415.28566-1-leon@kernel.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GjchyRdYhLAWsw5KQxaMj7ccbSp+3qcEIdr5776TWsc=; b=LHOK2FHSeR4niUoa2jt0heKMjyOjyS7diRaX/xa2GWUj32L6oIios6dEsNCgJVaMGq 98Kk+Ws17asA+dbwF05ch6LxdP2D2dO166edj38RocwjvxhsfVh160XcHfDrQHAS9HS7 6pA3d1+ZfdxSQ+4GyWQ4UpINnk/Mcy9e+By0qrF+kDX/I0boHWu+NIHg8QE93Wi3PpSa uwFXbWWohIL284go/cg/o7RcKPBhcz4ZtMYBDeIKgm/+qm4ui0+wVRZkDUvF0a/85lrE EOqLarFcfTtRVyo8gqoa4jsQLA4mvirOyrNH68WeD7qPgkGHMY+B/xH4SSQ6nMMQUo/6 4+VA== Content-Disposition: inline In-Reply-To: <20190117181415.28566-1-leon@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Leon Romanovsky Cc: Doug Ledford , Tejun Heo , Li Zefan , Johannes Weiner , Parav Pandit , RDMA mailing list , LKML , cgroups , Leon Romanovsky On Thu, Jan 17, 2019 at 08:14:15PM +0200, Leon Romanovsky wrote: > From: Parav Pandit > > RDMA cgroup registration routine always returns success, > so simplify function to be void and run clang formatter > over whole CONFIG_CGROUP_RDMA art of core_priv.h. > > This reduces unwinding error path for regular registration and > future net namespace change functionality for rdma device. > > Signed-off-by: Parav Pandit > Signed-off-by: Leon Romanovsky > Acked-by: Tejun Heo > --- > drivers/infiniband/core/cgroup.c | 5 ++--- > drivers/infiniband/core/core_priv.h | 17 +++++++++++------ > drivers/infiniband/core/device.c | 8 +------- > include/linux/cgroup_rdma.h | 2 +- > kernel/cgroup/rdma.c | 5 +---- > 5 files changed, 16 insertions(+), 21 deletions(-) Applied to for-next Thanks, Jason