Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mike Christie and committed by
Martin K. Petersen
69af1c95 7cb6683c

+2 -5
+2 -4
drivers/scsi/libiscsi.c
··· 2798 2798 ihost = shost_priv(shost); 2799 2799 2800 2800 if (xmit_can_sleep) { 2801 - snprintf(ihost->workq_name, sizeof(ihost->workq_name), 2802 - "iscsi_q_%d", shost->host_no); 2803 - ihost->workq = alloc_workqueue("%s", 2801 + ihost->workq = alloc_workqueue("iscsi_q_%d", 2804 2802 WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND, 2805 - 1, ihost->workq_name); 2803 + 1, shost->host_no); 2806 2804 if (!ihost->workq) 2807 2805 goto free_host; 2808 2806 }
-1
include/scsi/libiscsi.h
··· 383 383 int state; 384 384 385 385 struct workqueue_struct *workq; 386 - char workq_name[20]; 387 386 }; 388 387 389 388 /*