Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp816410imm; Fri, 22 Jun 2018 05:53:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK20zHhfIcIDHlPoIxg4PYLS+jKuiITmY4v+CnXIfXrb65auJZ9OgLkMQ7OVcyPbUxu2tNU X-Received: by 2002:a62:c296:: with SMTP id w22-v6mr1653212pfk.92.1529672006031; Fri, 22 Jun 2018 05:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529672006; cv=none; d=google.com; s=arc-20160816; b=GkTPJX3Y6F2ZctdhUrrdVlJl+leBo74/zDhDeQRYX9SskzujeEAd3rG8Zkrmcmh7FA lq+Bf0b05hqvExfWq52Qi58S/h48zGbppnrQJpn7I94/UyXQjQRRP7P0+FAjFqZFvTqC PCn2089/eeUnEfgiFr1xXxeKj99NsyCDL8YK/tuL/f6hvb8M1sYxNqZX8/HBt4D0jy5T yGBRalwArKi8aqfM15hG0jfB0fVn11TzMpC4wek0ONC98lvJ8i6Z3kTncE08SCI0wI67 xCHtpR0SLutO2NzPXKelgfe/1is+VGaq0sEzhRFMi+CL5yd0/i+f6DCl4q+deG6h0eVC a1Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=D2CmwOL+QRLiJ+gxZSg4dUyZ0LMtQYZCn/duReXrfe8=; b=MfaYVSBwBUtsfFIISAwk+6eJ5iYAayvZIaWIF1tuq26TXNy511ypoOVqVJXC7rJR0I M5nMl+lLN0MsK4foLWvkdSd0lok3xQP7eKe8jTbnEYcN4/d7xoGX08ZZqvHPPZtCco9h xaJpeanz7a7y1y+6sClMyOhyzL3rzemy04NHONq52eEYG/Ta4lEnINjJJGvV4YeyEbjD UBJflBNcy1LlFFYYHhmOCBU3LAF1qR6YpJeCrnUFwdHN+zfg+57QveiqAgAijrw5PwwC F0sLGVzM0TCSnQ8SJSziDSSx3KegOE0IItZFYmg6Noq61yE2Z7mNBrzBezjF1c7k5A7L r8ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si2016822pla.475.2018.06.22.05.53.06; Fri, 22 Jun 2018 05:53:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754265AbeFVMwU (ORCPT + 99 others); Fri, 22 Jun 2018 08:52:20 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751300AbeFVMwS (ORCPT ); Fri, 22 Jun 2018 08:52:18 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 051C3400E9BA; Fri, 22 Jun 2018 12:52:18 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-238.rdu2.redhat.com [10.10.120.238]) by smtp.corp.redhat.com (Postfix) with ESMTP id E74531C707; Fri, 22 Jun 2018 12:52:16 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180621184754.GB21326@outlook.office365.com> References: <20180621184754.GB21326@outlook.office365.com> <152720682792.9073.14747437198191460035.stgit@warthog.procyon.org.uk> To: Andrei Vagin Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Tejun Heo Subject: Re: [16/32] kernfs, sysfs, cgroup, intel_rdt: Support fs_context [ver #8] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29798.1529671936.1@warthog.procyon.org.uk> Date: Fri, 22 Jun 2018 13:52:16 +0100 Message-ID: <29799.1529671936@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 22 Jun 2018 12:52:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 22 Jun 2018 12:52:18 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrei Vagin wrote: > ret = 0; > + ctx->root = root; > goto out_unlock; Okay, I can see that. > percpu_ref_reinit(&root->cgrp.self.refcnt); > mutex_unlock(&cgroup_mutex); > } > + cgroup_get(&root->cgrp); This probably needs to be conditional on ret == 0. Which version are you testing btw? The patches in git have been fixed a little from what was last posted. David