dcssblk: remove the end of device check in dcssblk_submit_bio
authorChristoph Hellwig <hch@lst.de>
Sun, 29 Nov 2020 09:19:50 +0000 (10:19 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 23 Jan 2021 21:01:36 +0000 (22:01 +0100)
The block layer already checks for this conditions in bio_check_eod
before calling the driver.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
drivers/s390/block/dcssblk.c

index 299e77ec2c416395515182a2ec983649cf0d4ca6..5c5cff3f2374525581cb51de07e9dc5dc7adbfa0 100644 (file)
@@ -886,10 +886,6 @@ dcssblk_submit_bio(struct bio *bio)
            (bio->bi_iter.bi_size & 4095) != 0)
                /* Request is not page-aligned. */
                goto fail;
-       if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) {
-               /* Request beyond end of DCSS segment. */
-               goto fail;
-       }
        /* verify data transfer direction */
        if (dev_info->is_shared) {
                switch (dev_info->segment_type) {