1NAME = "aio dio bugs"
2AUTHOR = "Rafal Wijata <wijata@nec-labs.com>"
3TEST_TYPE = "client"
4TEST_CLASS = "Kernel"
5TEST_CATEGORY = "Functional"
6TIME = "MEDIUM"
7DOC = """\
8This was originally submitted to
9 http://bugzilla.kernel.org/show_bug.cgi?id=6831 by
10Rafal Wijata <wijata@nec-labs.com>.  It caught a race in dio aio completion
11that would call aio_complete() before the dio callers would update i_size.
12A stat after io_getevents() would not see the new file size.
13
14The bug was fixed in the fs/direct-io.c completion reworking that appeared
15in 2.6.20.  This test should fail on 2.6.19.
16"""
17
18
19job.run_test('aio_dio_bugs')
20