diff options
Diffstat (limited to 'fs/pnode.c')
-rw-r--r-- | fs/pnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/pnode.c b/fs/pnode.c index 3cfd48cf887e..58933fd149ad 100644 --- a/fs/pnode.c +++ b/fs/pnode.c | |||
@@ -264,12 +264,12 @@ int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp, | |||
264 | prev_src_mnt = child; | 264 | prev_src_mnt = child; |
265 | } | 265 | } |
266 | out: | 266 | out: |
267 | br_write_lock(&vfsmount_lock); | 267 | lock_mount_hash(); |
268 | while (!list_empty(&tmp_list)) { | 268 | while (!list_empty(&tmp_list)) { |
269 | child = list_first_entry(&tmp_list, struct mount, mnt_hash); | 269 | child = list_first_entry(&tmp_list, struct mount, mnt_hash); |
270 | umount_tree(child, 0); | 270 | umount_tree(child, 0); |
271 | } | 271 | } |
272 | br_write_unlock(&vfsmount_lock); | 272 | unlock_mount_hash(); |
273 | return ret; | 273 | return ret; |
274 | } | 274 | } |
275 | 275 | ||