staging: lustre: llite: Delaying creation of client side proc entries.
authorGaurav Mahajan <gmahajan@ddn.com>
Tue, 5 Apr 2016 01:36:56 +0000 (21:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 03:47:10 +0000 (20:47 -0700)
commit46dfb5aa980272230ceee48613aba5bd79951f33
tree00480d7ad8d573599722b9f94789fe95bf3e8541
parent98b29828b71b19963f3b818bdbc3e8b32ffaa761
staging: lustre: llite: Delaying creation of client side proc entries.

In client_common_fill_super() proc entries are created before
before cl_sb_init() and therefore lu_site is not allocated resulting
in client crash when tried reading lu_site stats.
Delaying creation of proc entries after creation of all required data
structures fixed the problem.

Signed-off-by: Gaurav Mahajan <gmahajan@ddn.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2941
Reviewed-on: http://review.whamcloud.com/6852
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c
This page took 0.024783 seconds and 5 git commands to generate.