mapperd: Add debug message to signal map and put map
authorFilippos Giannakos <philipgian@grnet.gr>
Thu, 30 May 2013 15:23:09 +0000 (18:23 +0300)
committerFilippos Giannakos <philipgian@grnet.gr>
Mon, 3 Jun 2013 14:46:27 +0000 (17:46 +0300)
xseg/peers/user/mt-mapperd.c

index bb22141..64bfb8c 100644 (file)
@@ -174,6 +174,8 @@ struct map_node {
 
 #define signal_map(__map)                      \
        do {                                    \
+               XSEGLOG2(&lc, D, "Checking map %lx %s. Waiters %u, ta: %u", \
+                               __map, __map->volume, __map->waiters, ta);  \
                if (__map->waiters) {           \
                        ta += __map->waiters;           \
                        XSEGLOG2(&lc, D, "Signaling map %lx %s, waiters: %u, \
@@ -1625,6 +1627,7 @@ static inline void __get_map(struct map *map)
 static inline void put_map(struct map *map)
 {
        struct map_node *mn;
+       XSEGLOG2(&lc, D, "Putting map %lx %s. ref %u", map, map->volume, map->ref);
        map->ref--;
        if (!map->ref){
                XSEGLOG2(&lc, I, "Freeing map %s", map->volume);