Hi Thomas, On 6/23/2018 5:16 AM, Thomas Gleixner wrote: > On Fri, 22 Jun 2018, Reinette Chatre wrote: >> The Cache Pseudo-Locking enabling series that was recently merged to the >> x86/cache branch of tip was found to conflict with the new kernfs support >> for mounting with fs_context. >> >> In preparation for a conflict-free merge between the two repos some no-op >> hooks are created within the RDT mount function being changed by >> the two features. The goal is for this commit to be placed on a minimal >> no-rebase branch to be consumed by both features. > > Thanks for doing this so quick! I've picked up the lot and slightly > modified the first patch by moving the stubs to the header file to get them > completely out of the conflicting area. > > The immutable branch for David to pull is: > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git for-vfs > > I've also created a branch based on Davids mount-context branch, applied > the cleanup patch below to it and merged the for-vfs branch on top. > > David feel free to pull the result from > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git for-vfs-merged > > or pick up the patch below and do the merge and conflict resolution yourself. > > The x86/cache branch is rebased and merges cleanly with for-vfs-merged. The > last two patches are dropped; I folded them back to the patches they fix. > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cache > > Reinette, can you please verify that x86/cache + for-vfs-merged are doing > the right thing? >
I tested a merge of x86/cache and for-vfs-merged and Cache Pseudo-Locking works. The for-vfs-merged changes modify how mount options are handled so I tried to cover this as well by testing on a (L3) CDP supporting system. Mounting resctrl with and without the cdp mount option behaves as expected. In fact, if I am looking right it seems that for-vfs-merged includes a fix for the current resctrl mount option handling. The resctrl filesystem supports mount options for CDP and the MBA software controller. At the moment, if an error occurs after the mount options are handled, only the CDP option handling is reverted, not the MBA software controller handling. The for-vfs-merged changes includes an additional snippet on the error path for handling of the MBA software controller mount option: +out_mba: + if (ctx->enable_mba_mbps) + set_mba_sc(false); Reinette