[sheepdog-users] Sheepdog initialize issue

Jinzhi Chen nxtjinzhi at gmail.com
Tue Oct 28 10:07:22 CET 2014

hi, I'm current using sheepdog v0.8.3, with journal enable
When configure with --enable-debug and start sheep with journal ,
one of sheep's thread [journal commit] goes into infinite loop in function

static void trace_set_tid_map(int tid)
        if (tid > tid_max) {
                size_t old_tid_max = tid_max;

                /* enlarge bitmap size */

                while (tid > tid_max)
                        tid_max *= 2;

                tid_map = alloc_bitmap(tid_map, old_tid_max, tid_max);
        set_bit(tid, tid_map);

because `tid_max` is not initialized until function `wq_trace_init` which
is called
by 'create_work_queues` after journal initialize progress.

I think maybe we can just set the tid_max to TID_MAX_DEFAULT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20141028/66935ff6/attachment-0004.html>

More information about the sheepdog-users mailing list