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