Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1080226imm; Fri, 22 Jun 2018 10:00:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKkfMWU615KQ5aHeJLviQub+fVTTACvn3uv8XA0tf1JJQ18YnQngazSu+1HGGycYYRNVX4G X-Received: by 2002:a62:6e01:: with SMTP id j1-v6mr2596234pfc.93.1529686825203; Fri, 22 Jun 2018 10:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529686825; cv=none; d=google.com; s=arc-20160816; b=uU0fLRjxMbtBoDzwe6ZdBkZyWzvj4yS3mfeIjuE8ccu2K/v2RPLryXUP+pE9Ajhycb fedBJzZNfu7km87/JbJK71P2i+q9L7B7fCJlz7239qb/defKHcQ5x/zhaeAZvZu/Eiki ZEsWQNznKGrQcTjB5XCksP6sukvsbgFaEzhyT3ZfN83X6YGETk/9mLh9RMIMjJMHKNCN 9Avkz4+Ih4m/R6lnIisK0BrT+rrZmSLdYIr6X8polfY0p2NmbKKvKHJJviz1L/hr0QeM xKe0rleSoXAj/Te40XV4YndWGlSaiwKmmQgYxDBkIm9K8M6agbqV31kGdycDoeZgsL5E J7nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=EkiXMZa5MUzoD9vclYkSwey3xNxxZQYof+YxQw90bCA=; b=Ct739Y7qxYROufvzZgtiJRY5mSRn+AFfNxCAzlNJL10hGb2/zQf9W0q6sGrqDAcnDw GsZmY13Adi6YO7C99JKPMtTJl//HII9G8TN1hQaT3dHsGbowKzl90NbC+LVsUYfdkSZ5 YojeufuTD0th5lus6nbBLeNSOmCaNM6Xj8Ol0/IHKiMnS8ZUvnNzXTZ6JuDKyRzffq3p RGzKQAYRYXzT0UjBsLlT0FpiI9+Zg7/2lHQoS92rttO3ARn5uikf/FZJokcWU3ESp8EE aDdlEiZjQz7RkJ2a0mxn0WY77ffb9HK6fuShVryZbGK2dcqR4mwFEz77qLpn0kVrgHFO yIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hwrsSKRg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si8068595ple.447.2018.06.22.10.00.10; Fri, 22 Jun 2018 10:00:25 -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; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hwrsSKRg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754338AbeFVQ5g (ORCPT + 99 others); Fri, 22 Jun 2018 12:57:36 -0400 Received: from mail-db5eur01on0116.outbound.protection.outlook.com ([104.47.2.116]:24617 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753072AbeFVQ5d (ORCPT ); Fri, 22 Jun 2018 12:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EkiXMZa5MUzoD9vclYkSwey3xNxxZQYof+YxQw90bCA=; b=hwrsSKRgOTB0tNi+7YLg8XUFRQAAHxREwiZuX+9+ihGXL60tLAP9eBpvQmhOAQsAOIjWqWmTFweGdPffDyiu7NF7FuF0P15Bdq1u9Aqk76eMWW2c9tNaDNz9MvUFQXB3VBGTF/dGkqT4XinLUy6X2yTWfTSZVe12NngVqKNGen4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=avagin@virtuozzo.com; Received: from outlook.office365.com (4.16.175.162) by AM6PR08MB3256.eurprd08.prod.outlook.com (2603:10a6:209:47::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Fri, 22 Jun 2018 16:57:29 +0000 Date: Fri, 22 Jun 2018 09:57:16 -0700 From: Andrei Vagin To: David Howells Cc: 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] Message-ID: <20180622165715.GA5361@outlook.office365.com> References: <20180621184754.GB21326@outlook.office365.com> <152720682792.9073.14747437198191460035.stgit@warthog.procyon.org.uk> <29799.1529671936@warthog.procyon.org.uk> <20180622153029.GA3070@outlook.office365.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20180622153029.GA3070@outlook.office365.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [4.16.175.162] X-ClientProxiedBy: MWHPR02CA0019.namprd02.prod.outlook.com (2603:10b6:300:4b::29) To AM6PR08MB3256.eurprd08.prod.outlook.com (2603:10a6:209:47::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f7c8c36e-dd3d-4c88-0bb3-08d5d8613dec X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989114)(4534165)(4627221)(201703031133081)(201702281549075)(8990104)(5600026)(711020)(2017052603328)(7153060)(7193020);SRVR:AM6PR08MB3256; X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3256;3:LOehpJi1g+Pgqw4LIz4BwBaFk9/lKMLptQk7VqjGGIR5fDxZtaawnyVJPa97NVlvW6Oe9KFK5EAO9/mCTfxjoOTHa71iqOcY6CmoMjy55LSN5T8LlU7wedubhprIkTIy7RA7tD7R0iRa2otNOPpkFb1SADrplkE0bFGe26F/bQYNtdaO+ooDw02ETegxVmFCfPiy/mKeeXaj6uZX4CG4lNMxW0gFMfDGFiniXLhHWM6NXcDufhRlKwsCc2lzRhNx;25:4pJTyy1yIWp9ibRp3Z4MYZTUe8iGMw64VavFCVG37tfdb8fk+36Z/4P7UX5b+oKW9wCbN5sJSVF3LpcbybzxtcsvvVHb2oDUkGV8lLk+l12svpCskpi3APlqCETmcHl2sxFsOigSgmiyBBm6tHZwVc7aKKTcEx2xb24tmQgvVgmdAIhW8RqHIAjbkLaItSnP7L+nV18LEh/+qUVGyKqv344+enugleeK56N28Br4UFNDM/TVwbjhsxZi4o/rmvNo6dWw0jTrFDapA4leaiT6HsOnqjDwXjvSIZ2rN6v7oh9ve0uMt+Rx9ByB+X7rcrCmlmPKO91zc/xsOARsZto8Sg==;31:dHG0hqN+XEHTdnAPDsfoaXmhNqVfnYsCwaYDXXX+2yADSwWT88PQtjImvzrBxnJGs94p9tZsIgATH8lITE/ltzHOsTkgfhpeDHf70XmkDmG4h7WyeltYnDIIQmWP97eoMSW6lpIHFhAtKeraI3oqXVyx1qjMQVITzteS8nuBsiPNA6inEqJxnc/ox6Kw7iCzGkExQJ/kLJPr4EI+W9VPAGTDM12AHq9JTFS9+s8u+d8= X-MS-TrafficTypeDiagnostic: AM6PR08MB3256: X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3256;20:rq/W8JJaLBmi4VEFu+43mJlXmw/nvj9GsyFVRBiT205jDz0SosuxOrwUJvvoKZdf0pHHnuEVLnxohabpgOeHYFoz/hn+jEQRUhfzwVWUg0zcXaGIDZCjvgFvfa7wN8badCdhDqiNwNoTsY+qnAhoS/mT7H1S1TkMzysQie2SxgG5l1m5HrnGkbS79xSYfOJikhFol197L+jBGpMszDHOmvcRip0b6qHhn5U5T/hftzOKREt4wE2tUl3ijLNlYwBXCSpHT91Umulxcjr2W5D8SPk97sEzRLLwrGo8Vj9gekCdAukSUws57W6GxwRcspATZxVKnjOIO4/+6kzn9MVIKlmatk6Oh1kVGd6w3EOp+Rt7RoutD+g63Z/c4nnIYPKaGT0YyDX09mEunH4iGzxhEyAXI0mvjrcOjMT6Cxz2xT6H1xpPR4i5GDi5Av97PFoQqaec/xD4fFtT9+WjOfCZcfnb2MGXb+uLtkXzVQU1xqjhAz2OtOffUx5TPeBjoJcw;4:lo7dNgKOobW9OwAPV+96XKavg4nzMLFI5rGNf6rd2LEK3bKIOeZjtE0IvlwLGCwgjhNSbU+427NKHapVhi3rNDyE574RgB5G0kJdar76616z6llVmMfINK5ef/i96aJQ84kJA4cuaOK3KqvBk5zsJ7U/zzPKepYiXkDUh/L0pQZ4y8FGaRXpYxH2oIqPfDP/yWzwmCVI3rsN43q02YUMvPDTT5zbS+8IVGLubIx58xy6I8yvAXB5g2ZEckzENiyT6Q7KAbz0hxoZ57LtXaZh+w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:AM6PR08MB3256;BCL:0;PCL:0;RULEID:;SRVR:AM6PR08MB3256; X-Forefront-PRVS: 071156160B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39380400002)(39850400004)(366004)(346002)(396003)(376002)(199004)(189003)(53416004)(81166006)(81156014)(11346002)(93886005)(956004)(86362001)(316002)(446003)(8936002)(6116002)(3846002)(476003)(97736004)(2906002)(1076002)(37156001)(106356001)(105586002)(66066001)(7736002)(8676002)(305945005)(47776003)(55016002)(23686003)(9686003)(68736007)(50466002)(478600001)(69596002)(6916009)(229853002)(16586007)(53936002)(6246003)(386003)(16526019)(76176011)(6506007)(33656002)(7696005)(52116002)(26005)(5660300001)(4326008)(486006)(25786009)(58126008)(6666003)(186003)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR08MB3256;H:outlook.office365.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?koi8-r?Q?1;AM6PR08MB3256;23:vFVBnc7VUxhbUzVTY9Ww0KIDRVzbeVFHhRbFvS0+Sm0?= =?koi8-r?Q?28CLFHyCFWSLXbwSHgh4lhdayyYDAhFsXsWhoa7qsIeNK+Ef2dNglEB2bQMDr9?= =?koi8-r?Q?Pffe1oKWSSDRXuNmUyWJ6mj7RTc8kclZgtSFyFTFjoIWe5MeJ5lfmwQaLVwNe6?= =?koi8-r?Q?J6hqduqOR5KrZLb4rN/Q8zHGZDUhwYCoCAHkOju0FkEKxVFXqfN0g3DTvJxA5d?= =?koi8-r?Q?x6wW0VywRL0+ZQjOoGw7cDwDQQ+CU64ufReN5PpIbiC4gtdtcGAGWNAFIWf3XA?= =?koi8-r?Q?yFaK8CerbH5bRSlwwWcF/17IcqCmlkbv7VBatASTEHXQt02mzE0Ve8Shjj/I0W?= =?koi8-r?Q?NzUYAjZ2Zikjs167CwU2ccQultaGL9E28OlHtSqnHCa01aW7sJz6Bd6ajpM3G4?= =?koi8-r?Q?xUZsJOSIKK4VmR6zeBav4fqJvEeV5dDUQyEmHNO3Hjm7SoWDLbb5YURKMV/68A?= =?koi8-r?Q?oayhv/T5v0BO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2WsMnnxg5VLXfBPQw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3256;7:78wNzVPfwk++TYAyElEcZqKngeOZFGqY88ltuJXqBjgDOoiqRlNRBTj5oPGejSb2iqczdqOWY0O2nWvi7ozQ6AXmSWg71y6j6a9F2WEfCswSVkVnEj7rbarNPk0JDK1P3CQCkV4VqnM2hhljdlIVLNV2i5zUanKj95NmFlte2ykBxRRsEm9UQ+MbN3wdyFdtE7wiqenhHdmBDUUpJeO2XN85HQJGb81/virhUirtMzwuHn5bqJ5my6Mg5twj/SGp;20:yp+By/jVroSWP1hRFo5aNg/aMMbDGDLhqDt8SDH5QLQT6HfrbPFrS3CbXlPmFNGSIXRx0rz1kNVD1CIoyZceBPtaWg1N29yXPDOSyxAyOLJ8HFDQN3bSMjob8LFyzG83MI/fJvX8sGzpdzPrQQKu/P1rRc06TnqecAhCeaQKrXw= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 16:57:29.0881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f7c8c36e-dd3d-4c88-0bb3-08d5d8613dec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 08:30:29AM -0700, Andrei Vagin wrote: > On Fri, Jun 22, 2018 at 01:52:16PM +0100, David Howells wrote: > > 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. > > yes, you are right I've read the code and I think it isn't obvious. A reference will be released id cgroup_fs_context_free() even if ret isn't zero here. I look at do_new_mount() vfs_new_fs_context() ... if (vfs_get_tree()) goto out_fc; .... out_fc: put_fs_context(fc); fc->ops->free(fc); cgroup_fs_context_free() cgroup_put(&ctx->root->cgrp); > > > > > Which version are you testing btw? The patches in git have been fixed a > > little from what was last posted. > > I'm testing linux-next-20180621 > > commit 8439c34f07a3f58245e933ca2703239417288363 (tag: next-20180621, > linux-next/master) > Author: Stephen Rothwell > Date: Thu Jun 21 14:09:41 2018 +1000 > > Add linux-next specific files for 20180621 > > Signed-off-by: Stephen Rothwell > > > > > David