mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[RFC PATCH] touch_mnt_namespace when the mount flags change
Daemons that need to be launched while the rootfs is read-only can now poll /proc/mounts to be notified when their O_RDWR requests may no longer end in EROFS. Cc: Kay Sievers <[email protected]> Cc: Neil Brown <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
91efc167d0
commit
0e55a7cca4
1 changed files with 6 additions and 1 deletions
|
|
@ -1550,8 +1550,13 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
|
|||
if (!err)
|
||||
path->mnt->mnt_flags = mnt_flags;
|
||||
up_write(&sb->s_umount);
|
||||
if (!err)
|
||||
if (!err) {
|
||||
security_sb_post_remount(path->mnt, flags, data);
|
||||
|
||||
spin_lock(&vfsmount_lock);
|
||||
touch_mnt_namespace(path->mnt->mnt_ns);
|
||||
spin_unlock(&vfsmount_lock);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue