• Christoph Hellwig's avatar
    block: BARRIER request should imply SYNC · 41f2df62
    Christoph Hellwig authored
    A barrier request should by defintion have priority in get_request
    and let the queue be unplugged immediately as it's blocking all forward
    progress due to the queue draining.
    
    Most filesystems already get this implicitly by the way how submit_bh
    treats the buffer_ordered flag, and gfs2 sets it explicitly.  But btrfs
    and XFS are still forgetting to set the flag, as is blkdev_issue_flush
    and some places in DM/MD.
    
    For XFS on metadata heavy workloads this gives a consistent speedup
    in the 2-3% range.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    41f2df62
fs.h 85.8 KB