]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4591b48f07a13dd37c7ab59cf3356d31e98c9ee4
tree17cd144e9215ac7db9084f385c9c0d50e82b0bf6
parent3363d8e7d5b16be77d141b593eaf756af7e27944
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