Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dcssblk: remove the end of device check in dcssblk_submit_bio

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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
cf9a978f 74cb8994

-4
-4
drivers/s390/block/dcssblk.c
··· 886 886 (bio->bi_iter.bi_size & 4095) != 0) 887 887 /* Request is not page-aligned. */ 888 888 goto fail; 889 - if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) { 890 - /* Request beyond end of DCSS segment. */ 891 - goto fail; 892 - } 893 889 /* verify data transfer direction */ 894 890 if (dev_info->is_shared) { 895 891 switch (dev_info->segment_type) {