xfstest: add fallocate/truncate vs AIO/DIO stress test
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 20 Feb 2013 10:42:12 +0000 (10:42 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 1 Mar 2013 17:55:25 +0000 (11:55 -0600)
commit0f88dc26abf55cee39ede490da08ed0d2960cdb2
tree22d6267e0075d9feeb9c56b7035871989fc9a0c6
parentbb949015a8d3fcf4a5c105b1edd74f27b848a806
xfstest: add fallocate/truncate vs AIO/DIO stress test

Run DIO, fallocate and truncate threads on a common file in parallel.
If a race exists, the old dio request may rewrite blocks after it was
allocated to another file, we will catch that by verifying blocks content.

this patch known to catch deadlock for ext4
http://lists.openwall.net/linux-ext4/2012/09/06/3

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
299 [new file with mode: 0644]
299.out [new file with mode: 0644]
group