]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: block direct I/O writes during ext4_truncate
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2013 04:09:56 +0000 (00:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2013 04:09:56 +0000 (00:09 -0400)
commit839ffb2667d0ccb593efd74b42219fcc1d2b18f6
treef3c58e967aeae8aa38d16d9ee5d5d2804fb41cc5
parentc8e15130e1636f68d5165aa2605b8e9cba0f644c
ext4: block direct I/O writes during ext4_truncate

Just as in ext4_punch_hole() it is important that we block DIO writes
while the truncate is proceeding, since during the overwriting DIO
write, we drop i_mutex, which means a truncate could start while the
Direct I/O operation is still in progress.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/inode.c