Whamcloud - gitweb
LU-613 clio: Client dead-lock during binary exec
authorJinshan Xiong <jay@whamcloud.com>
Fri, 19 Aug 2011 22:24:15 +0000 (15:24 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Jan 2012 19:41:15 +0000 (14:41 -0500)
commit70d61fa40ca30074f6f2211df51a2552c37754df
tree865f837b2824ffb0eb61e24f25d34ce294c2fd83
parent3ea251f8719ac83ff54566ce02fb16509dd1058c
LU-613 clio: Client dead-lock during binary exec

The root cause is clio takes attr lock and i_size_sem in reverse
order.

In my patch, I find out there is no deadlock issue any more in fault
and truncate path, so it holds i_size_sem in fault path to fix this
problem.

Change-Id: I04cca9324158a34fded6651692410e29aae2e402
Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1281
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lclient.h
lustre/lclient/lcommon_cl.c
lustre/liblustre/llite_cl.c
lustre/llite/rw.c
lustre/llite/vvp_io.c
lustre/tests/Makefile.am
lustre/tests/racer.sh
lustre/tests/racer/file_exec.sh [new file with mode: 0755]
lustre/tests/racer/racer.sh