Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp472441imm; Thu, 21 Jun 2018 23:14:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKNS0TKoSQNAim9ZjGYIhg7bjUoo/ZDoyEbUN87oEyU1A5UhL8WibFNN0eZ/W7t2dJxtxAh X-Received: by 2002:a17:902:bd8f:: with SMTP id q15-v6mr264750pls.161.1529648074350; Thu, 21 Jun 2018 23:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529648074; cv=none; d=google.com; s=arc-20160816; b=s3DI89/Ov73Vh3pkZZiMRpi4g9cYGMU4wsZoNtby5JV/Fdswm7qkozowPl8DI/2Lup d7/gueO7sZXif/LtnSwwQEpzIvgCpWHV4YG8qc8u3/iY0aZff4ii1ivugHWXxHDOuHN5 CMnpRWhQmajt4tRDmID7dtgduti5JuuhIly+j5Ph7yISp6OBgfXwAdLRcG/0BcvDFvVT iF8m3PDHGqMgZ9d21DcYyHBVHJppkec8CWhTY69Y3J1Avv0MzNB+DJmpplTwZ7Ut502Z BrrAQDumuM0hLEJO2fie0duzlq6ejeddq9trpILLSpAdQa9L/C0ZO5Ed5X4R0YjWF+2R yRNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=PavLmzzxy47ZntQzLqp9CVC9aLh6Jvw3f7AYzbY1QsU=; b=aGythPzTLkITt6IYREzZ9TRYq3cPhPtuU8OUlkwDliLzMZ0fPaTesfmjzsVLbSFxs5 2fJKIWHM/D3pB2RUR7OZ/A60KvlP0IWnrtkww4Iq/N0ICAlvopWjtRw8TRaQgUa/Kt12 h0a81iNdVtNRSHdibRcm/NQ2ZUJzTkWRyFVNb+3TsMXL0GFqcNT9IzxIjvEBxhVIGnOj LU3vSSjT8eNNZL7JQw/dRSes+f39NNawi+QoEPLovagr+0x/b5GOeRh5J1dCKnI4FIyp pZJ4mwXB163rPrWfhqS33owByWxrMApic8BhO3F2NhP37yR7tSeFM/eaOPCUv0FIFPc0 uJQg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4-v6si6888153pfg.329.2018.06.21.23.14.19; Thu, 21 Jun 2018 23:14:34 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751103AbeFVGNf (ORCPT + 99 others); Fri, 22 Jun 2018 02:13:35 -0400 Received: from mga05.intel.com ([192.55.52.43]:2713 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbeFVGNe (ORCPT ); Fri, 22 Jun 2018 02:13:34 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 23:13:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,255,1526367600"; d="scan'208";a="66274145" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.254.80.177]) ([10.254.80.177]) by fmsmga001.fm.intel.com with ESMTP; 21 Jun 2018 23:13:33 -0700 Subject: Re: linux-next: manual merge of the tip tree with the vfs tree To: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Al Viro Cc: Linux-Next Mailing List , Linux Kernel Mailing List , David Howells References: <20180622115346.1e9cc433@canb.auug.org.au> From: Reinette Chatre Message-ID: Date: Thu, 21 Jun 2018 23:13:32 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180622115346.1e9cc433@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All, On 6/21/2018 6:53 PM, Stephen Rothwell wrote: > Today's linux-next merge of the tip tree got a conflict in: > > arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > > between commit: > > 58e4e43911f8 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") > > from the vfs tree and commit: > > a3dbd01e6c9d ("x86/intel_rdt: Create character device exposing pseudo-loc= > ked region") > > from the tip tree. > > I fixed it up (I think - see below) and can carry the fix as necessary. > This is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > index 38a54f56ff40,7b4a09d81a30..000000000000 > --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > @@@ -1270,9 -1861,16 +1842,15 @@@ static int rdt_get_tree(struct fs_conte > rdtgroup_default.mon.mon_data_kn = kn_mondata; > } > > + ret = rdt_pseudo_lock_init(); > + if (ret) { > + dentry = ERR_PTR(ret); > + goto out_mondata; > + } > + > - dentry = kernfs_mount(fs_type, flags, rdt_root, > - RDTGROUP_SUPER_MAGIC, NULL); > - if (IS_ERR(dentry)) > + ret = kernfs_get_tree(fc); > + if (ret < 0) > - goto out_mondata; > + goto out_psl; > > if (rdt_alloc_capable) > static_branch_enable_cpuslocked(&rdt_alloc_enable_key); >> + ret = rdt_pseudo_lock_init(); >> + if (ret) { >> + dentry = ERR_PTR(ret); > > Actually I have removed the above line as well. I am the contributor of the pseudo-locking related code that caused the conflict. Stephen, thank you very much for proceeding with the merge and fixing it up. I copied your later fix addition to this email and combined they look good. I did some basic smoke testing of the merged code and it works. Thomas and David, please let me know what I can do from my side to help with this. As summary, with the above changes combined the merge can be done using: ->8- diff --cc arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index 7b4a09d81a30,38a54f56ff40..caa2754f8948 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@@ -1861,16 -1270,9 +1842,13 @@@ static int rdt_get_tree(struct fs_conte rdtgroup_default.mon.mon_data_kn = kn_mondata; } + ret = rdt_pseudo_lock_init(); - if (ret) { - dentry = ERR_PTR(ret); ++ if (ret) + goto out_mondata; - } + - dentry = kernfs_mount(fs_type, flags, rdt_root, - RDTGROUP_SUPER_MAGIC, NULL); - if (IS_ERR(dentry)) + ret = kernfs_get_tree(fc); + if (ret < 0) - goto out_mondata; + goto out_psl; if (rdt_alloc_capable) static_branch_enable_cpuslocked(&rdt_alloc_enable_key); Reinette