K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2000-12-13T05:13:02.000000Z K 7 svn:log V 409 Eliminate a race in MEXTFREE(). The reference counter decrement and test was not atomic. We now make sure that we free the ext buf if the reference count is about to reach 0 but also make sure that nobody else has done it before us. While I'm here, change refcnt to u_int (from long). This fixes a compiler warning regarding use of atomic_cmpset_long on i386. Submitted by: jasone Reviewed by: jlemon, jake END