Whamcloud - gitweb
b=19069
authorzhanghc <zhanghc>
Mon, 19 Oct 2009 05:41:51 +0000 (05:41 +0000)
committerzhanghc <zhanghc>
Mon, 19 Oct 2009 05:41:51 +0000 (05:41 +0000)
increase the count of nidstrings to reduce the chance
of reusing the same buffer while it is being used

i=johann@sun.com
i=zhen.liang@sun.com

lnet/libcfs/nidstrings.c

index 048c23b..8e66a8a 100644 (file)
@@ -64,7 +64,7 @@
  * between getting its string and using it.
  */
 
-#define LNET_NIDSTR_COUNT  128     /* # of nidstrings */
+#define LNET_NIDSTR_COUNT  1024    /* # of nidstrings */
 #define LNET_NIDSTR_SIZE   32      /* size of each one (see below for usage) */
 
 static char      libcfs_nidstrings[LNET_NIDSTR_COUNT][LNET_NIDSTR_SIZE];