scsi: iscsi: Drop temp workq_name

When the workqueue code was created it didn't allow variable args so we
have been using a temp buffer. Drop that.

Link: https://lore.kernel.org/r/20220226230435.38733-7-michael.christie@oracle.com
Reviewed-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Mike Christie 2022-02-26 17:04:35 -06:00 коммит произвёл Martin K. Petersen
Родитель 7cb6683ce7
Коммит 69af1c9577
2 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -2798,11 +2798,9 @@ struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht,
ihost = shost_priv(shost); ihost = shost_priv(shost);
if (xmit_can_sleep) { if (xmit_can_sleep) {
snprintf(ihost->workq_name, sizeof(ihost->workq_name), ihost->workq = alloc_workqueue("iscsi_q_%d",
"iscsi_q_%d", shost->host_no);
ihost->workq = alloc_workqueue("%s",
WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND, WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
1, ihost->workq_name); 1, shost->host_no);
if (!ihost->workq) if (!ihost->workq)
goto free_host; goto free_host;
} }

Просмотреть файл

@ -383,7 +383,6 @@ struct iscsi_host {
int state; int state;
struct workqueue_struct *workq; struct workqueue_struct *workq;
char workq_name[20];
}; };
/* /*