Whamcloud - gitweb
LU-931 mdd: store lu_fid instead of pointer in md_capainfo
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Tue, 17 Jan 2012 04:10:25 +0000 (12:10 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Jan 2012 14:23:02 +0000 (09:23 -0500)
commit3a78e12f100e43e2996976d06a95a1b8e61b33ff
tree0cbc0d5c40e70afb652c9e6b322cb81cc863da8c
parentafe043c883c7b833a702dfe00d3814f0e18d3942
LU-931 mdd: store lu_fid instead of pointer in md_capainfo

in md_capainfo, mc_fid contains at most 5 pointers to lu_fid,
and if the corresponding lu_fid is freed, the pointer isn't notified
about it, then the pointer will point to freed memory!

Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Change-Id: I00088cbfeb145ceac0477467a8b2436f6cf1e530
Reviewed-on: http://review.whamcloud.com/1979
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/md_object.h
lustre/mdd/mdd_internal.h
lustre/mdt/mdt_internal.h