Whamcloud - gitweb
LU-9344 test: hung with sendfile_grouplock test12() 46/26646/9
authorBobi Jam <bobijam.xu@intel.com>
Sat, 15 Apr 2017 03:57:18 +0000 (11:57 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Apr 2017 20:36:24 +0000 (20:36 +0000)
commitc6b5df7644c245853b5dcf82b1c93614c5357f3f
tree5a25425088d156eb378aababc1b73c3253e4b325
parentaf3d457b77e0ffb649871532b04e4721a701f974
LU-9344 test: hung with sendfile_grouplock test12()

This is a makeshift fix.

When we hold a group lock of a file, there should no data written to
the file, since during the write IO, the file's layout could possibly
change, and the write IO will try to update its layout, which could
be blocked by itself.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ia24310d509e8a93c3c1d849c54eacf789f40bfb8
Reviewed-on: https://review.whamcloud.com/26646
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/cl_object.h
lustre/llite/file.c
lustre/lod/lod_object.c
lustre/lov/lov_internal.h
lustre/lov/lov_object.c
lustre/tests/sendfile_grouplock.c