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 @@ -2574,10 +2574,6 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25742574 wakeup_bdi = inode_io_list_move_locked (inode , wb ,
25752575 dirty_list );
25762576
2577- spin_unlock (& wb -> list_lock );
2578- spin_unlock (& inode -> i_lock );
2579- trace_writeback_dirty_inode_enqueue (inode );
2580-
25812577 /*
25822578 * If this is the first dirty inode for this bdi,
25832579 * we have to wake-up the corresponding bdi thread
@@ -2587,6 +2583,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25872583 if (wakeup_bdi &&
25882584 (wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
25892585 wb_wakeup_delayed (wb );
2586+
2587+ spin_unlock (& wb -> list_lock );
2588+ spin_unlock (& inode -> i_lock );
2589+ trace_writeback_dirty_inode_enqueue (inode );
2590+
25902591 return ;
25912592 }
25922593 }
You can’t perform that action at this time.
0 commit comments