File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
drivers/infiniband/hw/hfi1 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -846,6 +846,10 @@ static void destroy_workqueues(struct hfi1_devdata *dd)
846
846
destroy_workqueue (ppd -> hfi1_wq );
847
847
ppd -> hfi1_wq = NULL ;
848
848
}
849
+ if (ppd -> link_wq ) {
850
+ destroy_workqueue (ppd -> link_wq );
851
+ ppd -> link_wq = NULL ;
852
+ }
849
853
}
850
854
}
851
855
@@ -1122,14 +1126,10 @@ static void shutdown_device(struct hfi1_devdata *dd)
1122
1126
* We can't count on interrupts since we are stopping.
1123
1127
*/
1124
1128
hfi1_quiet_serdes (ppd );
1125
-
1126
1129
if (ppd -> hfi1_wq )
1127
1130
flush_workqueue (ppd -> hfi1_wq );
1128
- if (ppd -> link_wq ) {
1131
+ if (ppd -> link_wq )
1129
1132
flush_workqueue (ppd -> link_wq );
1130
- destroy_workqueue (ppd -> link_wq );
1131
- ppd -> link_wq = NULL ;
1132
- }
1133
1133
}
1134
1134
sdma_exit (dd );
1135
1135
}
You can’t perform that action at this time.
0 commit comments