diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nbd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 7fecc784be01..037288e7874d 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -856,6 +856,8 @@ static int __init nbd_init(void) | |||
856 | disk->queue->limits.discard_granularity = 512; | 856 | disk->queue->limits.discard_granularity = 512; |
857 | disk->queue->limits.max_discard_sectors = UINT_MAX; | 857 | disk->queue->limits.max_discard_sectors = UINT_MAX; |
858 | disk->queue->limits.discard_zeroes_data = 0; | 858 | disk->queue->limits.discard_zeroes_data = 0; |
859 | blk_queue_max_hw_sectors(disk->queue, 65536); | ||
860 | disk->queue->limits.max_sectors = 256; | ||
859 | } | 861 | } |
860 | 862 | ||
861 | if (register_blkdev(NBD_MAJOR, "nbd")) { | 863 | if (register_blkdev(NBD_MAJOR, "nbd")) { |