]> git.baikalelectronics.ru Git - kernel.git/commit
target: fix discard alignment on partitions
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:34 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commit24a2bdf8eb4d1477296534110c5bde2f0e5d4a45
tree4cc0428343df0790ff58583fe9d772fdbc278434
parent76bbbc544f451716fd435e1d5eed30593edfee93
target: fix discard alignment on partitions

Use the proper bdev_discard_alignment helper that accounts for partition
offsets.

Fixes: fb5d17acd631 ("[SCSI] target: Add LIO target core v4.0.0-rc6")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/target/target_core_device.c