• J
    vfs: Avoid unnecessary WB_SYNC_NONE writeback during sys_sync and reorder sync passes · 4ea425b6
    Jan Kara 提交于
    wakeup_flusher_threads(0) will queue work doing complete writeback for each
    flusher thread. Thus there is not much point in submitting another work doing
    full inode WB_SYNC_NONE writeback by writeback_inodes_sb().
    
    After this change it does not make sense to call nonblocking ->sync_fs and
    block device flush before calling sync_inodes_sb() because
    wakeup_flusher_threads() is completely asynchronous and thus these functions
    would be called in parallel with inode writeback running which will effectively
    void any work they do. So we move sync_inodes_sb() call before these two
    functions.
    Signed-off-by: NJan Kara <jack@suse.cz>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    4ea425b6
sync.c 10.8 KB
新手
引导
客服 返回
顶部