mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
target: Remove TARGET_MAX_LUNS_PER_TRANSPORT
LUN allocation is now fully dynamic, so there is no need to artificially restrain the number of exported LUNs. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
f2d3068020
commit
196e2e2aa3
5 changed files with 4 additions and 32 deletions
|
|
@ -864,7 +864,7 @@ static int scsiback_add_translation_entry(struct vscsibk_info *info,
|
|||
struct list_head *head = &(info->v2p_entry_lists);
|
||||
unsigned long flags;
|
||||
char *lunp;
|
||||
unsigned int unpacked_lun;
|
||||
unsigned long long unpacked_lun;
|
||||
struct se_lun *se_lun;
|
||||
struct scsiback_tpg *tpg_entry, *tpg = NULL;
|
||||
char *error = "doesn't exist";
|
||||
|
|
@ -876,9 +876,10 @@ static int scsiback_add_translation_entry(struct vscsibk_info *info,
|
|||
}
|
||||
*lunp = 0;
|
||||
lunp++;
|
||||
if (kstrtouint(lunp, 10, &unpacked_lun) || unpacked_lun >= TRANSPORT_MAX_LUNS_PER_TPG) {
|
||||
err = kstrtoull(lunp, 10, &unpacked_lun);
|
||||
if (err < 0) {
|
||||
pr_err("lun number not valid: %s\n", lunp);
|
||||
return -EINVAL;
|
||||
return err;
|
||||
}
|
||||
|
||||
mutex_lock(&scsiback_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue