Whamcloud - gitweb
LU-1337 llite: kernel 3.1 kills inode->i_alloc_sem
authorLiu Xuezhao <xuezhao.liu@emc.com>
Thu, 27 Sep 2012 06:20:25 +0000 (14:20 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 2 Nov 2012 19:30:33 +0000 (15:30 -0400)
commitf78805dbf041bb42b250fe754dff7b864856203f
treea3fde4f046ffd0fdaf8042267af4b4c6007a98c8
parent984f4ce51fd38caaf0bd2b706a130f7f17c51638
LU-1337 llite: kernel 3.1 kills inode->i_alloc_sem

Kernel 3.1 kills inode->i_alloc_sem, use i_dio_count and
inode_dio_wait/inode_dio_done instead.
(kernel commit bd5fe6c5eb9c548d7f07fe8f89a150bb6705e8e3).

Add HAVE_INODE_DIO_WAIT to differentiate it.

Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com>
Change-Id: Ife36e07a85c76153985a4a86ee1973262c4c0e27
Reviewed-on: http://review.whamcloud.com/3582
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/llite/llite_lib.c
lustre/llite/vvp_io.c
lustre/llite/vvp_page.c
lustre/osc/osc_cache.c
lustre/osd-ldiskfs/osd_io.c