On 3/7/22 16:27, Mike Christie wrote:
Allow the recv and xmit works to run from different threads if the user
has set it up.
This also removes the __WQ_LEGACY since it was never needed.
Signed-off-by: Mike Christie <michael.christie@xxxxxxxxxx>
---
drivers/scsi/libiscsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index fec64cbfa4b6..0a0076144874 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -2824,8 +2824,8 @@ struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht,
if (xmit_can_sleep) {
ihost->workq = alloc_workqueue("iscsi_q_%d",
- WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
- 1, shost->host_no);
+ WQ_SYSFS | WQ_MEM_RECLAIM | WQ_UNBOUND,
+ 2, shost->host_no);
if (!ihost->workq)
goto free_host;
}
Reviewed-by: Lee Duncan <lduncan@xxxxxxxx>