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)
26082608 wakeup_bdi = inode_io_list_move_locked (inode , wb ,
26092609 dirty_list );
26102610
2611- spin_unlock (& wb -> list_lock );
2612- spin_unlock (& inode -> i_lock );
2613- trace_writeback_dirty_inode_enqueue (inode );
2614-
26152611 /*
26162612 * If this is the first dirty inode for this bdi,
26172613 * we have to wake-up the corresponding bdi thread
@@ -2621,6 +2617,11 @@ void __mark_inode_dirty(struct inode *inode, int flags)
26212617 if (wakeup_bdi &&
26222618 (wb -> bdi -> capabilities & BDI_CAP_WRITEBACK ))
26232619 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+
26242625 return ;
26252626 }
26262627 }
You can’t perform that action at this time.
0 commit comments