[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d1c2719f0805122100u7e550820xff6fcdbc1e538948@mail.gmail.com>
Date: Mon, 12 May 2008 21:00:08 -0700
From: "Jerry Chu" <hkchu@...gle.com>
To: "David Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: Socket buffer sizes with autotuning
Does xchg() return the old value? (Can't find any comments on it.)
Jerry
On Mon, May 12, 2008 at 8:58 PM, David Miller <davem@...emloft.net> wrote:
> From: "Jerry Chu" <hkchu@...gle.com>
> Date: Mon, 12 May 2008 20:56:16 -0700
>
>
> > If true, can we use some atomic operation to zap in_flight, but also
> > return to the caller if in_flight has been nullified already so that
> > the accounting can be handled correctly?
>
> xchg() should work for that purpose.
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists