Re: net-next/unix: BUG: using smp_processor_id() in preemptible

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <dada1@...>
Cc: <ilpo.jarvinen@...>, <netdev@...>
Date: Sunday, November 23, 2008 - 9:20 pm

From: Eric Dumazet <dada1@cosmosbay.com>
Date: Sun, 23 Nov 2008 04:32:30 +0100


Eric, you added this bug by starting to use this interface in
situations where BH's were not disabled.

Ever existing use adhered to that rule.

If you therefore want to call this interface in new locations,
you have to make sure those locations follow the rule too.

Making it expensive for all the existing cases which were already
safe, is not the way to fix this.  And saying some future not-merged
change justifies this added cost is besides the point.

What is valid is getting rid of the BH disables you need to add
to net/unix/af_unix.c et al.'s call sites, once those percpu patches
are added.  Not the other way around.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: net-next/unix: BUG: using smp_processor_id() in preempti..., David Miller, (Sun Nov 23, 9:20 pm)