diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_rd.c | 7 | ||||
-rw-r--r-- | drivers/target/target_core_rd.h | 1 |
2 files changed, 2 insertions, 6 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) | |||
64 | pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on" | 64 | pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on" |
65 | " Generic Target Core Stack %s\n", hba->hba_id, | 65 | " Generic Target Core Stack %s\n", hba->hba_id, |
66 | RD_HBA_VERSION, TARGET_CORE_MOD_VERSION); | 66 | RD_HBA_VERSION, TARGET_CORE_MOD_VERSION); |
67 | pr_debug("CORE_HBA[%d] - Attached Ramdisk HBA: %u to Generic" | ||
68 | " MaxSectors: %u\n", hba->hba_id, | ||
69 | rd_host->rd_host_id, RD_MAX_SECTORS); | ||
70 | 67 | ||
71 | return 0; | 68 | return 0; |
72 | } | 69 | } |
@@ -235,8 +232,8 @@ static struct se_device *rd_create_virtdevice(struct se_hba *hba, | |||
235 | snprintf(rev, 4, "%s", RD_MCP_VERSION); | 232 | snprintf(rev, 4, "%s", RD_MCP_VERSION); |
236 | 233 | ||
237 | dev_limits.limits.logical_block_size = RD_BLOCKSIZE; | 234 | dev_limits.limits.logical_block_size = RD_BLOCKSIZE; |
238 | dev_limits.limits.max_hw_sectors = RD_MAX_SECTORS; | 235 | dev_limits.limits.max_hw_sectors = UINT_MAX; |
239 | dev_limits.limits.max_sectors = RD_MAX_SECTORS; | 236 | dev_limits.limits.max_sectors = UINT_MAX; |
240 | dev_limits.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; | 237 | dev_limits.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; |
241 | dev_limits.queue_depth = RD_DEVICE_QUEUE_DEPTH; | 238 | dev_limits.queue_depth = RD_DEVICE_QUEUE_DEPTH; |
242 | 239 | ||
diff --git a/drivers/target/target_core_rd.h b/drivers/target/target_core_rd.h index 94acec9e872f..21458125fe51 100644 --- a/drivers/target/target_core_rd.h +++ b/drivers/target/target_core_rd.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #define RD_DEVICE_QUEUE_DEPTH 32 | 9 | #define RD_DEVICE_QUEUE_DEPTH 32 |
10 | #define RD_MAX_DEVICE_QUEUE_DEPTH 128 | 10 | #define RD_MAX_DEVICE_QUEUE_DEPTH 128 |
11 | #define RD_BLOCKSIZE 512 | 11 | #define RD_BLOCKSIZE 512 |
12 | #define RD_MAX_SECTORS 1024 | ||
13 | 12 | ||
14 | /* Used in target_core_init_configfs() for virtual LUN 0 access */ | 13 | /* Used in target_core_init_configfs() for virtual LUN 0 access */ |
15 | int __init rd_module_init(void); | 14 | int __init rd_module_init(void); |