File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ void ocfs2_recovery_exit(struct ocfs2_super *osb)
217
217
/* At this point, we know that no more recovery threads can be
218
218
* launched, so wait for any recovery completion work to
219
219
* complete. */
220
- flush_workqueue (osb -> ocfs2_wq );
220
+ if (osb -> ocfs2_wq )
221
+ flush_workqueue (osb -> ocfs2_wq );
221
222
222
223
/*
223
224
* Now that recovery is shut down, and the osb is about to be
Original file line number Diff line number Diff line change @@ -377,7 +377,8 @@ void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb)
377
377
struct ocfs2_dinode * alloc = NULL ;
378
378
379
379
cancel_delayed_work (& osb -> la_enable_wq );
380
- flush_workqueue (osb -> ocfs2_wq );
380
+ if (osb -> ocfs2_wq )
381
+ flush_workqueue (osb -> ocfs2_wq );
381
382
382
383
if (osb -> local_alloc_state == OCFS2_LA_UNUSED )
383
384
goto out ;
You can’t perform that action at this time.
0 commit comments