Skip to content
Snippets Groups Projects
Forked from drm / msm
Source project has a limited visibility.
  • Dave Chinner's avatar
    4eb56069
    xfs: move CIL ordering to the logvec chain · 4eb56069
    Dave Chinner authored
    
    Adding a list_sort() call to the CIL push work while the xc_ctx_lock
    is held exclusively has resulted in fairly long lock hold times and
    that stops all front end transaction commits from making progress.
    
    We can move the sorting out of the xc_ctx_lock if we can transfer
    the ordering information to the log vectors as they are detached
    from the log items and then we can sort the log vectors.  With these
    changes, we can move the list_sort() call to just before we call
    xlog_write() when we aren't holding any locks at all.
    
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    4eb56069
    History
    xfs: move CIL ordering to the logvec chain
    Dave Chinner authored
    
    Adding a list_sort() call to the CIL push work while the xc_ctx_lock
    is held exclusively has resulted in fairly long lock hold times and
    that stops all front end transaction commits from making progress.
    
    We can move the sorting out of the xc_ctx_lock if we can transfer
    the ordering information to the log vectors as they are detached
    from the log items and then we can sort the log vectors.  With these
    changes, we can move the list_sort() call to just before we call
    xlog_write() when we aren't holding any locks at all.
    
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>