mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[PATCH] autofs4: tree race fix
For tree mount maps, a call to chdir or chroot, to a directory above the moint point directories at a certain time during the expire results in the expire incorrectly thinking the tree is not busy. This patch adds a check to see if the filesystem above the tree mount points is busy and also locks the filesystem during the tree mount expire to prevent the race. Signed-off-by: Ian Kent <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4dcd00b181
commit
3a9720ce73
3 changed files with 27 additions and 4 deletions
|
@ -206,6 +206,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
|||
sbi->version = 0;
|
||||
sbi->sub_version = 0;
|
||||
init_MUTEX(&sbi->wq_sem);
|
||||
spin_lock_init(&sbi->fs_lock);
|
||||
sbi->queues = NULL;
|
||||
s->s_blocksize = 1024;
|
||||
s->s_blocksize_bits = 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue