]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre/ldlm: fix export reference problem
authorHongchao Zhang <hongchao.zhang@intel.com>
Thu, 3 Nov 2016 01:24:52 +0000 (21:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:36:45 +0000 (11:36 +0100)
commita7d11461c2f34a86c5a30a40946daae1f97edca1
treef5259816f4b558cb00de69deb23928e5338742c1
parent2960e9b4a7780cc92f52019abb391535c2673055
staging/lustre/ldlm: fix export reference problem

1, in client_import_del_conn, the export returned from
   class_conn2export is not released after using it.

2, in ptlrpc_connect_interpret, the export is not released
   if the connect_flags isn't compatible.

Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: http://review.whamcloud.com/22031
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8500
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
drivers/staging/lustre/lustre/ptlrpc/import.c