@@ -3372,10 +3372,8 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
3372
3372
QEDF_INFO (& (qedf -> dbg_ctx ), QEDF_LOG_INFO , "qedf->io_mempool=%p.\n" ,
3373
3373
qedf -> io_mempool );
3374
3374
3375
- sprintf (host_buf , "qedf_%u_link" ,
3376
- qedf -> lport -> host -> host_no );
3377
- qedf -> link_update_wq =
3378
- alloc_workqueue ("%s" , WQ_MEM_RECLAIM , 1 , host_buf );
3375
+ qedf -> link_update_wq = alloc_workqueue ("qedf_%u_link" , WQ_MEM_RECLAIM ,
3376
+ 1 , qedf -> lport -> host -> host_no );
3379
3377
INIT_DELAYED_WORK (& qedf -> link_update , qedf_handle_link_update );
3380
3378
INIT_DELAYED_WORK (& qedf -> link_recovery , qedf_link_recovery );
3381
3379
INIT_DELAYED_WORK (& qedf -> grcdump_work , qedf_wq_grcdump );
@@ -3585,8 +3583,8 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
3585
3583
ether_addr_copy (params .ll2_mac_address , qedf -> mac );
3586
3584
3587
3585
/* Start LL2 processing thread */
3588
- snprintf ( host_buf , 20 , "qedf_%d_ll2" , host -> host_no );
3589
- qedf -> ll2_recv_wq = alloc_workqueue ( "%s" , WQ_MEM_RECLAIM , 1 , host_buf );
3586
+ qedf -> ll2_recv_wq = alloc_workqueue ( "qedf_%d_ll2" , WQ_MEM_RECLAIM , 1 ,
3587
+ host -> host_no );
3590
3588
if (!qedf -> ll2_recv_wq ) {
3591
3589
QEDF_ERR (& (qedf -> dbg_ctx ), "Failed to LL2 workqueue.\n" );
3592
3590
rc = - ENOMEM ;
@@ -3627,9 +3625,8 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
3627
3625
}
3628
3626
}
3629
3627
3630
- sprintf (host_buf , "qedf_%u_timer" , qedf -> lport -> host -> host_no );
3631
- qedf -> timer_work_queue =
3632
- alloc_workqueue ("%s" , WQ_MEM_RECLAIM , 1 , host_buf );
3628
+ qedf -> timer_work_queue = alloc_workqueue ("qedf_%u_timer" ,
3629
+ WQ_MEM_RECLAIM , 1 , qedf -> lport -> host -> host_no );
3633
3630
if (!qedf -> timer_work_queue ) {
3634
3631
QEDF_ERR (& (qedf -> dbg_ctx ), "Failed to start timer "
3635
3632
"workqueue.\n" );
0 commit comments