staging/lustre: fix LBUG and inode refcount bug
authorPeng Tao <bergwolf@gmail.com>
Wed, 29 May 2013 13:40:56 +0000 (21:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:49:45 +0000 (20:49 +0900)
commit1e4db2b325bc0fa6517ae6081b9284a207b9a688
tree515307c308d08c320f585893fce38be93497e5fd
parent73bb1da692d0dc3e93b9c9e29084d6a5dcbc37a6
staging/lustre: fix LBUG and inode refcount bug

ldlm_proc_setup and ldlm_proc_cleanup should reset global
pde pointers otherwise remount may hit
LASSERT(ldlm_ns_proc_dir == NULL);

Also in libcfs_sock_ioctl, fput() includes itself sock_release.
So don't call sock_release twice otherwise kernel may oops
due to incorrect inode ref counting.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c