Whamcloud - gitweb
b=19069 save nid string into buffer before creating dir
authorhongchao.zhang <Hongchao.Zhang@Sun.COM>
Thu, 11 Feb 2010 20:41:06 +0000 (12:41 -0800)
committerRobert Read <rread@sun.com>
Thu, 11 Feb 2010 20:41:06 +0000 (12:41 -0800)
commit0632de2b0144ee751cc5a38e0aa2dcad43523bea
tree3ac22a2966a637929c26f32fcebdfff19ab13f60
parentcd40f5454d9fefcbdf0a2eb50dee78be5d19e72c
b=19069 save nid string into buffer before creating dir

in lprocfs_exp_setup, save the nid string gotten from
libcfs_nid2str into a temporary buffer before calling
lprocfs_register to create proc directory, then to
avoid the race on the internal nid string buffer.

i=johann@sun.com
i=zhen.liang@sun.com
libcfs/libcfs/nidstrings.c
lnet/include/lnet/lnet.h
lustre/obdclass/lprocfs_status.c