ext4: endless truncate due to nonlocked dio readers
authorDmitry Monakhov <dmonakhov@openvz.org>
Sat, 29 Sep 2012 04:56:15 +0000 (00:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Sep 2012 04:56:15 +0000 (00:56 -0400)
commit1b65007e9870e0021397b548e8cd6bbc584f9152
tree17cd144e9215ac7db9084f385c9c0d50e82b0bf6
parent1c9114f9c0f10f58dd7e568a7152025af47b27e5
ext4: endless truncate due to nonlocked dio readers

If we have enough aggressive DIO readers, truncate and other dio
waiters will wait forever inside inode_dio_wait(). It is reasonable
to disable nonlock DIO read optimization during truncate.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c