staging/lustre/mgc: check the import stat for lprocfs
staging/lustre/mgc: check the import stat for lprocfs

in lprocfs_mgc_rd_ir_state, the import state should be checked
the validity before doing further work.

Signed-off-by: Hongchao Zhang <220277d2aa6211a73373bb6fdc54bef9342a3a38@intel.com>
Reviewed-on: http://review.whamcloud.com/12896
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5650
Reviewed-by: Fan Yong <ab453e5c5a64c8df72d3573911da2af406d0c762@intel.com>
Reviewed-by: Niu Yawei <9a4306993a9b05dce7bd8a5e926759eea151be9f@intel.com>
Signed-off-by: Oleg Drokin <65b2ca07820e940f66d8901813c729ec10a548f5@intel.com>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs