Push BKL down into ->remount_fs()
[xfs, btrfs, capifs, shmem don't need BKL, exempt] Signed-off-by: Alessio Igor Bogani <abogani@texware.it> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
committed by
Al Viro
parent
4195f73d13
commit
337eb00a2c
@ -46,6 +46,7 @@
|
||||
#include <linux/cgroupstats.h>
|
||||
#include <linux/hash.h>
|
||||
#include <linux/namei.h>
|
||||
#include <linux/smp_lock.h>
|
||||
|
||||
#include <asm/atomic.h>
|
||||
|
||||
@ -900,6 +901,7 @@ static int cgroup_remount(struct super_block *sb, int *flags, char *data)
|
||||
struct cgroup *cgrp = &root->top_cgroup;
|
||||
struct cgroup_sb_opts opts;
|
||||
|
||||
lock_kernel();
|
||||
mutex_lock(&cgrp->dentry->d_inode->i_mutex);
|
||||
mutex_lock(&cgroup_mutex);
|
||||
|
||||
@ -927,6 +929,7 @@ static int cgroup_remount(struct super_block *sb, int *flags, char *data)
|
||||
kfree(opts.release_agent);
|
||||
mutex_unlock(&cgroup_mutex);
|
||||
mutex_unlock(&cgrp->dentry->d_inode->i_mutex);
|
||||
unlock_kernel();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user