aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2018-10-12 15:53:10 +0800
committerJens Axboe <axboe@kernel.dk>2018-10-18 07:23:40 -0600
commit744889b7cbb56a64f957e65ade7cb65fe3f35714 (patch)
tree65972a4045c33b737862a4522271ec5705f41e2c /block/blk-sysfs.c
parentMerge branch 'nvme-4.19' of git://git.infradead.org/nvme into for-linus (diff)
downloadlinux-dev-744889b7cbb56a64f957e65ade7cb65fe3f35714.tar.xz
linux-dev-744889b7cbb56a64f957e65ade7cb65fe3f35714.zip
block: don't deal with discard limit in blkdev_issue_discard()
blk_queue_split() does respect this limit via bio splitting, so no need to do that in blkdev_issue_discard(), then we can align to normal bio submit(bio_add_page() & submit_bio()). More importantly, this patch fixes one issue introduced in a22c4d7e34402cc ("block: re-add discard_granularity and alignment checks"), in which zero discard bio may be generated in case of zero alignment. Fixes: a22c4d7e34402ccdf3 ("block: re-add discard_granularity and alignment checks") Cc: stable@vger.kernel.org Cc: Ming Lin <ming.l@ssi.samsung.com> Cc: Mike Snitzer <snitzer@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Xiao Ni <xni@redhat.com> Tested-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-sysfs.c')
0 files changed, 0 insertions, 0 deletions