Whamcloud - gitweb
LU-2941 llite: Delaying creation of client side proc entries. 52/6852/6
authorGaurav Mahajan <gmahajan@ddn.com>
Tue, 2 Jul 2013 06:12:05 +0000 (11:42 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Aug 2013 06:08:17 +0000 (06:08 +0000)
commit6b7bf77e7925bc844af119241fe3605a95c395e8
treef0791cb114bd06700974bbccbf82717a520ef283
parentf8480d9e323517a8277d4c0d76b322dfb5fbfcf9
LU-2941 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>
Change-Id: Id9fc9adc3ce043c691e2d26b85c4bd1917444144
Reviewed-on: http://review.whamcloud.com/6852
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
lustre/llite/llite_lib.c