Skip to content
Commit 72a43d63 authored by Al Viro's avatar Al Viro Committed by Al Viro
Browse files

ext3/4 with synchronous writes gets wedged by Postfix



OK, that's probably the easiest way to do that, as much as I don't like it...
Since iget() et.al. will not accept I_FREEING (will wait to go away
and restart), and since we'd better have serialization between new/free
on fs data structures anyway, we can afford simply skipping I_FREEING
et.al. in insert_inode_locked().

We do that from new_inode, so it won't race with free_inode in any interesting
ways and it won't race with iget (of any origin; nfsd or in case of fs
corruption a lookup) since both still will wait for I_LOCK.

Reviewed-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Acked-by: default avatarJan Kara <jack@suse.cz>
Tested-by: default avatarDavid Watson <dbwatson@ukfsn.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 460bcf57
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment