[Devel] [PATCH RHEL8 COMMIT] ve/fs/binfmt: Save ve owner on sb->s_fs_info

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jul 29 22:24:06 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.1
------>
commit a557e400544461db00ef1833903739fb959c4e4d
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Thu Jul 29 20:37:26 2021 +0300

    ve/fs/binfmt: Save ve owner on sb->s_fs_info
    
    During rebase to RHEL8.4 i've lost this assigment of the ve owner of the
    binfmt_misc object in sb->s_fs_info, so resurrect it.
    
    Fixes: 90fb0e27408e ("ve/fs/binfmt: virtualization")
    
    https://jira.sw.ru/browse/PSBM-131960
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/binfmt_misc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index e2678655a0e3..c21d03fd3f15 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -875,9 +875,10 @@ static int bm_fill_super(struct super_block *sb, struct fs_context *fc)
 	}
 
 	sb->s_op = &s_ops;
+	sb->s_fs_info = ve;
+	get_ve(ve);
 
 	bm_data->enabled = 1;
-	get_ve(ve);
 
 	return 0;
 }


More information about the Devel mailing list