• C
    block: BARRIER request should imply SYNC · 41f2df62
    Christoph Hellwig 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
    41f2df62
fs.h 85.8 KB