should we use atomic instructions to manipulate vmstats.v_wire_count?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Sunday, January 13, 2008 - 5:44 am

Hello,

I noticed that vmstats.v_wire_count is incremented and decremented w/o
protection.  In contrast, atomic instructions (from <atomic.h>) are
used in freebsd.

Is it a bug in dfly or is it intentional?

Cheers,
Nicolas
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
should we use atomic instructions to manipulate vmstats.v_wi..., Nicolas Thery, (Sun Jan 13, 5:44 am)
Re: should we use atomic instructions to manipulate vmstats...., Simon 'corecode' Schubert..., (Sun Jan 13, 8:49 am)
Re: should we use atomic instructions to manipulate vmstats...., Simon 'corecode' Schubert..., (Sun Jan 13, 9:32 am)