Re: OOPS: Multipath routing 2.4.17

From: kuznet@ms2.inr.ac.ru
Date: Sat Mar 02 2002 - 07:59:49 EST


Hello!

> w = jiffies % fi->fib_power;

        power = fi->fib_power;
        barrier();
        if (power) ...

Such thing are made in this way.

> write_lock(&fib_info_lock);

DO NOT MAKE THIS! fib_info_lock must not be acquired in this context,
it will lockup. Just add a new lock, which is protected wrt softirqs.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:23 EST