Skip to content
Snippets Groups Projects
Commit cf9a978f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 74cb8994
No related branches found
No related tags found
No related merge requests found
...@@ -886,10 +886,6 @@ dcssblk_submit_bio(struct bio *bio) ...@@ -886,10 +886,6 @@ dcssblk_submit_bio(struct bio *bio)
(bio->bi_iter.bi_size & 4095) != 0) (bio->bi_iter.bi_size & 4095) != 0)
/* Request is not page-aligned. */ /* Request is not page-aligned. */
goto fail; goto fail;
if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) {
/* Request beyond end of DCSS segment. */
goto fail;
}
/* verify data transfer direction */ /* verify data transfer direction */
if (dev_info->is_shared) { if (dev_info->is_shared) {
switch (dev_info->segment_type) { switch (dev_info->segment_type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment