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 @@ -2511,10 +2511,6 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25112511 wakeup_bdi = inode_io_list_move_locked (inode , wb ,
25122512 dirty_list );
25132513
2514- spin_unlock (& wb -> list_lock );
2515- spin_unlock (& inode -> i_lock );
2516- trace_writeback_dirty_inode_enqueue (inode );
2517-
25182514 /*
25192515 * If this is the first dirty inode for this bdi,
25202516 * we have to wake-up the corresponding bdi thread
@@ -2524,6 +2520,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
25242520 if (wakeup_bdi &&
25252521 (wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
25262522 wb_wakeup_delayed (wb );
2523+
2524+ spin_unlock (& wb -> list_lock );
2525+ spin_unlock (& inode -> i_lock );
2526+ trace_writeback_dirty_inode_enqueue (inode );
2527+
25272528 return ;
25282529 }
25292530 }
You can’t perform that action at this time.
0 commit comments