Whamcloud - gitweb
LU-506 kernel: remove BKL
authorLai Siyao <laisiyao@whamcloud.com>
Tue, 21 Feb 2012 07:40:55 +0000 (15:40 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 28 May 2012 09:55:10 +0000 (05:55 -0400)
commit8ee22413bbcab1ac89758ac2dedbcfd696e75205
tree95b0cb704a523b6e460ad96b00b28241812e48cf
parent69fba62b74408c3978a07f2886662b9f4d1e4182
LU-506 kernel: remove BKL

Late kernel removes BKL completely; do so for lustre:
* replace BKL with inode->i_lock in ldiskfs.
* HAVE_UNLOCKED_IOCTL is defined after 2.6.12, so this check can be
  removed from lustre code now.
* remove all lock/unlock_kernel definition/usage from lustre code.
* check kernel_locked() in configure, which is removed in 2.6.37.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I8a3432ad56b7a1fcdbf74be4b7819edb31bf6272
Reviewed-on: http://review.whamcloud.com/2169
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/linux/linux-lock.h
libcfs/include/libcfs/user-prim.h
libcfs/include/libcfs/winnt/winnt-prim.h
lustre/autoconf/lustre-core.m4
lustre/include/liblustre.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/lvfs/fsfilt_ext3.c
lustre/obdclass/obd_mount.c
lustre/obdecho/echo_client.c