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 @@ -2572,10 +2572,6 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25722572 wakeup_bdi = inode_io_list_move_locked (inode , wb ,
25732573 dirty_list );
25742574
2575- spin_unlock (& wb -> list_lock );
2576- spin_unlock (& inode -> i_lock );
2577- trace_writeback_dirty_inode_enqueue (inode );
2578-
25792575 /*
25802576 * If this is the first dirty inode for this bdi,
25812577 * we have to wake-up the corresponding bdi thread
@@ -2585,6 +2581,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25852581 if (wakeup_bdi &&
25862582 (wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
25872583 wb_wakeup_delayed (wb );
2584+
2585+ spin_unlock (& wb -> list_lock );
2586+ spin_unlock (& inode -> i_lock );
2587+ trace_writeback_dirty_inode_enqueue (inode );
2588+
25882589 return ;
25892590 }
25902591 }
You can’t perform that action at this time.
0 commit comments