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
| ||
|
Date: Mon, 23 May 2022 11:11:22 -0700 From: Luis Chamberlain <mcgrof@...nel.org> To: Pankaj Raghav <p.raghav@...sung.com> Cc: axboe@...nel.dk, hch@....de, snitzer@...hat.com, damien.lemoal@...nsource.wdc.com, hare@...e.de, Johannes.Thumshirn@....com, linux-nvme@...ts.infradead.org, dm-devel@...hat.com, dsterba@...e.com, jiangbo.365@...edance.com, linux-kernel@...r.kernel.org, gost.dev@...sung.com, linux-block@...r.kernel.org, jaegeuk@...nel.org, Damien Le Moal <damien.lemoal@....com> Subject: Re: [PATCH v5 6/7] null_blk: use zone_size_sects_shift for power of 2 zoned devices On Mon, May 23, 2022 at 06:16:00PM +0200, Pankaj Raghav wrote: > Instead of doing is_power_of_2 and ilog2 operation for every IO, cache > the zone_size_sects_shift variable and use it for power of 2 zoned > devices. > > This variable will be set to zero for non power of 2 zoned devices. > > Suggested-by: Damien Le Moal <damien.lemoal@....com> > Signed-off-by: Pankaj Raghav <p.raghav@...sung.com> Reviewed-by: Luis Chamberlain <mcgrof@...nel.org> Luis
Powered by blists - more mailing lists