[lkml]   [1999]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: ordered memory access
    >>>>> "Andrea" == Andrea Arcangeli <> writes:

    Andrea> On 30 Sep 1999, Jes Sorensen wrote:
    >> atomic_foo() should be ordered, at least that the idea behind it as

    Andrea> It isn't. Also the atomic_inc/dec and set_bit clear_bit
    Andrea> aren't.

    Andrea> Only test_and_*_bit and atomic_dec_and_test enforce ordering
    Andrea> between previous and following code.

    Aren't according to what architecture? Some architectures can only
    implement these by using a spin lock, thus they will certainly ensure
    ordering. My point here is, should we specify these functions to
    guarantee ordering, yes or no?

    Intuitively I think it makes sense to do so, and I doubt it will be a
    performance hit at all, but I am just guessing here.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:54    [W:0.018 / U:5.804 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site