aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/brd.c
diff options
context:
space:
mode:
authorfaux123 <reioux@gmail.com>2012-02-06 21:55:59 -0800
committerZiyan <jaraidaniel@gmail.com>2016-01-08 10:36:29 +0100
commitf8dec9b4149dd80be163acde7e29213d105132c6 (patch)
tree204bb6498eccfed0d77220d1655d453b94ac3b4d /drivers/block/brd.c
parentbc657aaabc60b1aa948049d6f8ea9083eabead96 (diff)
downloadkernel_samsung_tuna-f8dec9b4149dd80be163acde7e29213d105132c6.zip
kernel_samsung_tuna-f8dec9b4149dd80be163acde7e29213d105132c6.tar.gz
kernel_samsung_tuna-f8dec9b4149dd80be163acde7e29213d105132c6.tar.bz2
block: remove support for bio remapping from ->make_request
There is very little benefit in allowing to let a ->make_request instance update the bios device and sector and loop around it in __generic_make_request when we can archive the same through calling generic_make_request from the driver and letting the loop in generic_make_request handle it. Note that various drivers got the return value from ->make_request and returned non-zero values for errors. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: NeilBrown <neilb@suse.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com> Conflicts: block/blk-core.c drivers/md/raid1.c drivers/md/raid10.c drivers/staging/zram/zram_drv.c modified by faux123 Conflicts: drivers/block/umem.c Change-Id: I598876e1b7e31f13299512e58e01bb42c7db949d
Diffstat (limited to 'drivers/block/brd.c')
-rw-r--r--drivers/block/brd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index f5dfb8498..968a0d4 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -323,7 +323,7 @@ out:
return err;
}
-static int brd_make_request(struct request_queue *q, struct bio *bio)
+static void brd_make_request(struct request_queue *q, struct bio *bio)
{
struct block_device *bdev = bio->bi_bdev;
struct brd_device *brd = bdev->bd_disk->private_data;
@@ -359,8 +359,6 @@ static int brd_make_request(struct request_queue *q, struct bio *bio)
out:
bio_endio(bio, err);
-
- return 0;
}
#ifdef CONFIG_BLK_DEV_XIP