diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-03-26 04:57:08 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-14 17:40:30 -0700 |
commit | 83799efbfffff62678306ce5e98f4d6d0e069e23 (patch) | |
tree | f0d2826c2bb6a196de9706b0ed9899d5f3f515f0 /drivers/target/target_core_rd.c | |
parent | 8feb58d04b23e65c3d302f063544f3a1ae65e887 (diff) | |
download | linux-83799efbfffff62678306ce5e98f4d6d0e069e23.tar.bz2 |
target: don't limit transfer sizes for the ramdisk backend
The ramdisk backend has not inherent limitations for handling requests,
so don't artificially limits the transfer size.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_rd.c')
-rw-r--r-- | drivers/target/target_core_rd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c index 2a89187d262c..35c64d1e09d9 100644 --- a/drivers/target/target_core_rd.c +++ b/drivers/target/target_core_rd.c @@ -64,9 +64,6 @@ static int rd_attach_hba(struct se_hba *hba, u32 host_id) pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on" " Generic Target Core Stack %s\n", hba->hba_id, RD_HBA_VERSION, TARGET_CORE_MOD_VERSION); - pr_debug("CORE_HBA[%d] - Attached Ramdisk HBA: %u to Generic" - " MaxSectors: %u\n", hba->hba_id, - rd_host->rd_host_id, RD_MAX_SECTORS); return 0; } @@ -235,8 +232,8 @@ static struct se_device *rd_create_virtdevice(struct se_hba *hba, snprintf(rev, 4, "%s", RD_MCP_VERSION); dev_limits.limits.logical_block_size = RD_BLOCKSIZE; - dev_limits.limits.max_hw_sectors = RD_MAX_SECTORS; - dev_limits.limits.max_sectors = RD_MAX_SECTORS; + dev_limits.limits.max_hw_sectors = UINT_MAX; + dev_limits.limits.max_sectors = UINT_MAX; dev_limits.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; dev_limits.queue_depth = RD_DEVICE_QUEUE_DEPTH; |