Whamcloud - gitweb
* Fixed bug with unitilized data in plni
authorpjkirner <pjkirner>
Wed, 5 Oct 2005 20:48:13 +0000 (20:48 +0000)
committerpjkirner <pjkirner>
Wed, 5 Oct 2005 20:48:13 +0000 (20:48 +0000)
lnet/ulnds/ptllnd/ptllnd.c

index 76de220..8733c2b 100644 (file)
@@ -338,6 +338,13 @@ ptllnd_startup (lnet_ni_t *ni)
         plni->plni_ntxs = 0;
         CFS_INIT_LIST_HEAD(&plni->plni_active_txs);
         CFS_INIT_LIST_HEAD(&plni->plni_zombie_txs);
+        
+        /*
+         *  Initilize buffer related data structures
+         */
+        CFS_INIT_LIST_HEAD(&plni->plni_buffers);
+        plni->plni_nbuffers = 0;
+        plni->plni_nposted_buffers = 0;
 
         rc = ptllnd_get_tunables(ni);
         if (rc != 0)