File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2573,10 +2573,6 @@ void __mark_inode_dirty(struct inode *inode, int flags)
2573
2573
wakeup_bdi = inode_io_list_move_locked (inode , wb ,
2574
2574
dirty_list );
2575
2575
2576
- spin_unlock (& wb -> list_lock );
2577
- spin_unlock (& inode -> i_lock );
2578
- trace_writeback_dirty_inode_enqueue (inode );
2579
-
2580
2576
/*
2581
2577
* If this is the first dirty inode for this bdi,
2582
2578
* we have to wake-up the corresponding bdi thread
@@ -2586,6 +2582,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
2586
2582
if (wakeup_bdi &&
2587
2583
(wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
2588
2584
wb_wakeup_delayed (wb );
2585
+
2586
+ spin_unlock (& wb -> list_lock );
2587
+ spin_unlock (& inode -> i_lock );
2588
+ trace_writeback_dirty_inode_enqueue (inode );
2589
+
2589
2590
return ;
2590
2591
}
2591
2592
}
You can’t perform that action at this time.
0 commit comments