Commit ce7df19
Al Viro
attach_recursive_mnt(): do not lock the covering tree when sliding something under it
If we are propagating across the userns boundary, we need to lock the
mounts added there. However, in case when something has already
been mounted there and we end up sliding a new tree under that,
the stuff that had been there before should not get locked.
IOW, lock_mnt_tree() should be called before we reparent the
preexisting tree on top of what we are adding.
Fixes: 3bd045c ("separate copying and locking mount tree on cross-userns copies")
Signed-off-by: Al Viro <[email protected]>1 parent 7484e15 commit ce7df19
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2768 | 2768 | | |
2769 | 2769 | | |
2770 | 2770 | | |
2771 | | - | |
2772 | | - | |
2773 | | - | |
2774 | | - | |
2775 | 2771 | | |
2776 | 2772 | | |
2777 | 2773 | | |
2778 | 2774 | | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
2779 | 2779 | | |
2780 | 2780 | | |
2781 | 2781 | | |
| |||
0 commit comments