[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJFZqHwdyRQxhZSaa8K9qiXPC6T9fHVK6E2CmLuuZ7fZarvrQQ@mail.gmail.com>
Date: Mon, 10 Sep 2018 09:36:11 +0800
From: Li RongQing <roy.qing.li@...il.com>
To: Li RongQing <lirongqing@...du.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] netlink: fix hash::nelems check
after reconsider, I think we can remove this check directly, since
rht_grow_above_max() will be called to check the overflow again in
rhashtable_insert_one.
and atomic_read(&table->hash.nelems) always compares with unsigned
value, will force to switch unsigned, so the hash.nelems overflows can
be accepted.
-Rong
Powered by blists - more mailing lists