should we use atomic instructions to manipulate vmstats.v_wire_count?

Simon 'corecode' Schubert corecode at
Sun Jan 13 04:54:21 PST 2008

Nicolas Thery wrote:
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?
As far as I understand, we're requiring the mplock for vm operations, so that should be covered.

Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |      Against  HTML   \
Dude 2c 2 the max   !       Mail + News   / \

More information about the Kernel mailing list