Re: [PATCH net-next-2.6] rps: shortcut net_rps_action()

Changli Gao
2010-04-20T00:33:01Z

On Tue, Apr 20, 2010 at 7:56 AM, Changli Gao <xiaosuo@gmail.com> wrote:
>
> It seems you prefetch rps_ipi_next. I think it isn't necessary, as the
> list should be short. If you insist on this, is the macro prefetch()
> better?

Oh, I read the code again and got the answer. After the IPI is sent,
this softnet will be queued by the other CPUs. We prefetch the pointer
rps_ipi_next to avoid this race condition.

Sorry for noise :)

--
Regards，
Changli Gao(xiaosuo@gmail.com)