lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 12 Mar 2015 23:01:50 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	daniel@...earbox.net
Cc:	tgraf@...g.ch, netdev@...r.kernel.org, ying.xue@...driver.com
Subject: Re: [PATCH net-next] rhashtable: kill ht->shift atomic operations

From: Daniel Borkmann <daniel@...earbox.net>
Date: Thu, 12 Mar 2015 15:28:40 +0100

> Commit c0c09bfdc415 ("rhashtable: avoid unnecessary wakeup for worker
> queue") changed ht->shift to be atomic, which is actually unnecessary.
> 
> Instead of leaving the current shift in the core rhashtable structure,
> it can be cached inside the individual bucket tables.
> 
> There, it will only be initialized once during a new table allocation
> in the shrink/expansion slow path, and from then onward it stays immutable
> for the rest of the bucket table liftime.
> 
> That allows shift to be non-atomic. The patch also moves hash_rnd
> management into the table setup. The rhashtable structure now consumes
> 3 instead of 4 cachelines.
> 
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>

Applied.
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ