On Mon, Sep 26, 2011 at 15:17, 陳國成 <gcchen.org@xxxxxxxxx> wrote: > Hi, > > I encounter a strange problem when using 2.6.30 kernel. > > There are two processes, one runs main1() and the other runs main2(). > Two processes are running simultaneously on uni-processor system. > Besides, eth0 is a proprietory ethernet driver. > > IFF_ALLMULTI can be set on eth0 successfully most of the time. > The result looks like: > > main2: save_flags = 0x1043, flags = 0x1243 > > seldom, setting IFF_ALLMULTI on eth0 will not take effect and the > result looks like: > > main2: save_flags = 0x1002, flags = 0x1043 > main2: ret = 0 > > Please give me some suggestion about how to debug this issue. CMIIW, but looks like you design your code so that main1() runs first then followed by main2(), right? if that is right, then maybe what you experienced there is race condition.... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies