[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BC45302.7080004@trash.net>
Date: Tue, 13 Apr 2010 13:18:26 +0200
From: Patrick McHardy <kaber@...sh.net>
To: David Miller <davem@...emloft.net>
CC: netdev@...r.kernel.org
Subject: Re: [RFC PATCH 7/9] ipv4: ipmr: convert struct mfc_cache to struct
list_head
David Miller wrote:
> From: kaber@...sh.net
> Date: Sun, 11 Apr 2010 19:37:13 +0200
>
>> From: Patrick McHardy <kaber@...sh.net>
>>
>> Signed-off-by: Patrick McHardy <kaber@...sh.net>
>
> Great, it looks like you didn't fall into most of the
> traps that usually occur during a list_head conversion :-)
>
> But:
>
>> - c->next = net->ipv4.mfc_unres_queue;
>> - net->ipv4.mfc_unres_queue = c;
>> + list_add_tail(&c->list, &net->ipv4.mfc_unres_queue);
> ...
>> write_lock_bh(&mrt_lock);
>> - c->next = net->ipv4.mfc_cache_array[line];
>> - net->ipv4.mfc_cache_array[line] = c;
>> + list_add_tail(&c->list, &net->ipv4.mfc_cache_array[line]);
>> write_unlock_bh(&mrt_lock);
>
> Are you sure we mean to insert to the tail here? It looks like a head
> insertion to me beforehand, and the fact that the previous list
> iterators start at the list head pointer seem to confirm this.
I don't think it matters since each entry only exists once and
there are no ordering requirements, but I'll change it just to
make sure.
Thanks for your review so far :)
--
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