Re: [PATCH] 2.2 PPP driver SMP-safe

From: Paul Mackerras (paulus@linuxcare.com)
Date: Sun Feb 20 2000 - 18:27:05 EST


Alan Cox wrote:

> Figure the real bug.

I did, it was that ppp->tty_pushing was tested in one statement and set in
another a bit further down. The way it used to be done handled the
concurrency between mainline and bottom halves (without blocking either)
but wasn't good enough for SMP.

Now it uses test_and_set_bit instead to make it atomic.

> help. To start with set_bit is defined to be atomic

Well, yes, that's what I thought too, that's why I used it.

--
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc.
+61 2 6262 8990 tel, +61 2 6262 8991 fax
paulus@linuxcare.com.au, http://www.linuxcare.com.au/
Linuxcare.  Support for the revolution.

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:26 EST