You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case when we mounting something on top of a large stack of overmounts,
all of them being peers of each other, we get quadratic time by the
depth of overmount stack. Easily fixed by doing commit_tree() before
reparenting the overmount; simplifies commit_tree() as well - it doesn't
need to skip the already mounted stuff that had been reparented on top
of the new mounts.
Since we are holding mount_lock through both reparenting and call of
commit_tree(), the order does not matter from the mount hash point
of view.
Reported-by: "Lai, Yi" <[email protected]>
Tested-by: "Lai, Yi" <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Fixes: 6632068 "copy_tree(): don't link the mounts via mnt_list"
Signed-off-by: Al Viro <[email protected]>
0 commit comments