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 @@ -2608,10 +2608,6 @@ void __mark_inode_dirty(struct inode *inode, int flags)
2608
2608
wakeup_bdi = inode_io_list_move_locked (inode , wb ,
2609
2609
dirty_list );
2610
2610
2611
- spin_unlock (& wb -> list_lock );
2612
- spin_unlock (& inode -> i_lock );
2613
- trace_writeback_dirty_inode_enqueue (inode );
2614
-
2615
2611
/*
2616
2612
* If this is the first dirty inode for this bdi,
2617
2613
* we have to wake-up the corresponding bdi thread
@@ -2621,6 +2617,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
2621
2617
if (wakeup_bdi &&
2622
2618
(wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
2623
2619
wb_wakeup_delayed (wb );
2620
+
2621
+ spin_unlock (& wb -> list_lock );
2622
+ spin_unlock (& inode -> i_lock );
2623
+ trace_writeback_dirty_inode_enqueue (inode );
2624
+
2624
2625
return ;
2625
2626
}
2626
2627
}
You can’t perform that action at this time.
0 commit comments