Whamcloud - gitweb
LU-1205 tests: sanityn test_18 sometimes takes long time to run
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Fri, 13 Apr 2012 23:15:51 +0000 (16:15 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 15 May 2012 06:51:39 +0000 (02:51 -0400)
commit69f76e8f1da3b3ba27853c4d98cfa82ccf09f1f9
tree2fc0e98361502ede7059d208346607e1afa9ae1d
parent2b1697699531bd7ef9a7f1ccfb77c3fc7618e243
LU-1205 tests: sanityn test_18 sometimes takes long time to run

This is a live-lock problem where two processes are writing to the
same mmaped file via two nodes. To write a mmap region, both processes
will do:

  acquire cl_lock -> read page -> release cl_lock-> install page.

During the above steps, the page can be truncated after the lock is
released and then immediately cancelled by the other process, so
kernel has to do page fault again and never complete.

Lustre can't handle this case well so this test case is disabled.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I0c3fd5beab388cbed6193ae496d4d0e4f23be797
Reviewed-on: http://review.whamcloud.com/2544
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/mmap_sanity.c
lustre/tests/sanityn.sh