[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F10642E.2040302@candelatech.com>
Date: Fri, 13 Jan 2012 09:04:46 -0800
From: Ben Greear <greearb@...delatech.com>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: Eric Dumazet <eric.dumazet@...il.com>,
Francesco Ruggeri <fruggeri@...stanetworks.com>,
netdev@...r.kernel.org, Stephen Hemminger <shemminger@...tta.com>
Subject: Re: Race condition in ipv6 code
On 01/12/2012 11:40 PM, Eric W. Biederman wrote:
> So I really think the best solution to avoid the locking craziness is to
> have a wrapper that gets the value from userspace and calls
> schedule_work to get another thread to actually process the change. I
> don't see any problems with writing a helper function for that. The
> only downside with using schedule_work is that we return to userspace
> before the change has been fully installed in the kernel. I don't
> expect that would be a problem but stranger things have happened.
That sounds a bit risky to me. If something sets a value, and then
queries it, it should always show the proper result for the previous
calls.
If the queries also went through the the same sched-work queue
then maybe it would be OK.
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists