Re: [RFC,PATCH] ipvs: Fix race condition in lblb and lblcr schedulers

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Simon Horman <horms@...>
Cc: <lvs-devel@...>, <netdev@...>
Date: Wednesday, August 13, 2008 - 2:59 am

On Wed, 13 Aug 2008, Simon Horman wrote:


Your locking description is exactly how it was intented by me.


It looks suspicous, but word-size writes should be atomic by itself. So 
even doing it under read lock should not lead to corrupted values. We 
don't care if the values that are set concurrently are overwritten, 
because they should only differ in a couple of jiffies. Might be good to 
have someone other comment on the issue too.


Yeah, that's the point where we prevent the race with the trash purging. 
We could change the purging of destinations from the trash to be under 
__ip_vs_svc_lock write locked, then we know that all destinations, even 
the ones in the trash are valid. Might make more sense than duplicating 
this logic in other schedulers.

--
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: [RFC,PATCH] ipvs: Fix race condition in lblb and lblcr s..., Sven Wegener, (Wed Aug 13, 2:59 am)