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] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq18rshh8o7.fsf@ca-mkp.ca.oracle.com>
Date:   Wed, 06 Apr 2022 23:30:51 -0400
From:   "Martin K. Petersen" <martin.petersen@...cle.com>
To:     Christoph Hellwig via Ocfs2-devel <ocfs2-devel@....oracle.com>
Cc:     Jens Axboe <axboe@...nel.dk>, Christoph Hellwig <hch@....de>,
        jfs-discussion@...ts.sourceforge.net,
        linux-nvme@...ts.infradead.org,
        virtualization@...ts.linux-foundation.org, linux-mm@...ck.org,
        dm-devel@...hat.com, target-devel@...r.kernel.org,
        linux-mtd@...ts.infradead.org, drbd-dev@...ts.linbit.com,
        linux-s390@...r.kernel.org, linux-nilfs@...r.kernel.org,
        linux-scsi@...r.kernel.org, cluster-devel@...hat.com,
        xen-devel@...ts.xenproject.org, linux-ext4@...r.kernel.org,
        linux-um@...ts.infradead.org, nbd@...er.debian.org,
        linux-block@...r.kernel.org, linux-bcache@...r.kernel.org,
        ceph-devel@...r.kernel.org, linux-raid@...r.kernel.org,
        linux-mmc@...r.kernel.org, linux-f2fs-devel@...ts.sourceforge.net,
        linux-xfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
        ntfs3@...ts.linux.dev, linux-btrfs@...r.kernel.org
Subject: Re: [Ocfs2-devel] [PATCH 23/27] block: add a
 bdev_max_discard_sectors helper


Christoph,

> Add a helper to query the number of sectors support per each discard
> bio based on the block device and use this helper to stop various
> places from poking into the request_queue to see if discard is
> supported and if so how much.  This mirrors what is done e.g. for
> write zeroes as well.

Nicer!

Reviewed-by: Martin K. Petersen <martin.petersen@...cle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ