staging: lustre: import: don't reconnect during connect interpret
commit29bdcd6725a88c267167066db33ae663ed568331
authorMikhal Pershin <mike.pershin@intel.com>
Sat, 3 Dec 2016 00:53:25 +0000 (2 19:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 09:56:29 +0000 (6 10:56 +0100)
treec7cc8c4d15a4afec84faacedf39859e2511d6536
parent9fd14479a6d8dc22bb3802686a8a44cde1d4aae9
staging: lustre: import: don't reconnect during connect interpret

The import connect flags might be cleared by ptlrpc_connect_import()
wrongly if there is still connect interpret function is running.

Use imp_connected boolean variable to indicate that we are still
interpretting connect reply and don't try to reconnect until it ends.

Signed-off-by: Mikhal Pershin <mike.pershin@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7558
Reviewed-on: http://review.whamcloud.com/19312
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_import.h
drivers/staging/lustre/lustre/ptlrpc/import.c