]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90cebca236f947f208db298eb359ffd66d0a77e9
tree515307c308d08c320f585893fce38be93497e5fd
parenta5e4465999d7583dc4ada3c03e813698ee2e39b9
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