Whamcloud - gitweb
LU-787 clio: ftruncate shouldn't block when grouplock is hold
authorJohann Lombardi <johann@whamcloud.com>
Thu, 2 Feb 2012 13:21:22 +0000 (14:21 +0100)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Mar 2012 03:37:21 +0000 (23:37 -0400)
commit1f0cf69eb0346e5c07a5383a1182e28fe0137925
treec5efd5cf01db513bce7ef5672969f7d6526941b4
parent6eec76a7d8a181fa95daa5781be282bc27cae4c9
LU-787 clio: ftruncate shouldn't block when grouplock is hold

Pass the file descriptor used by ftruncate to the CLIO stack so that
ccc_io_one_lock_index() can use the group lock when appropriate (i.e.
when LL_FILE_GROUP_LOCKED is set).

This patch also adds a regression test for this issue.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Signed-off-by: Jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Change-Id: I81828cc63bb40586cc1155a58c00e3dab1100ec3
Reviewed-on: http://review.whamcloud.com/2081
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/liblustre.h
lustre/lclient/lcommon_cl.c
lustre/liblustre/llite_lib.h
lustre/llite/llite_internal.h
lustre/tests/multiop.c
lustre/tests/sanity.sh