Re: E1000: e1000_update_stats()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Todd Tomaino <ttomaino@...>
Cc: linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Wednesday, March 5, 2008 - 5:22 pm

Todd Tomaino wrote:


One potential problem with this is that the stats can be further out of 
date.

Consider this case:

cpu0 reads some of the registers, then gets preempted/interrupted
cpu1 reads all the registers, updates the stats, then dumps the data


At this point cpu1 dumped information that doesn't include the registers 
that cpu0 was in the middle of updating.  Eventually cpu0 will run again 
and the stats will be accurate, but there is a window where the stats 
may be self-inconsistent and the various counts may not add up.

Chris

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
E1000: e1000_update_stats(), Todd Tomaino, (Wed Mar 5, 4:45 pm)
Re: E1000: e1000_update_stats(), Kok, Auke, (Wed Mar 5, 5:34 pm)
Re: E1000: e1000_update_stats(), Chris Friesen, (Wed Mar 5, 5:22 pm)
Re: E1000: e1000_update_stats(), Kok, Auke, (Wed Mar 5, 5:40 pm)
Re: E1000: e1000_update_stats(), Chris Friesen, (Wed Mar 5, 6:00 pm)