• Christoph Hellwig's avatar
    block: fix DISCARD_BARRIER requests · fbbf0556
    Christoph Hellwig authored
    
    
    Filesystems assume that DISCARD_BARRIER are full barriers, so that they
    don't have to track in-progress discard operation when submitting new I/O.
    But currently we only treat them as elevator barriers, which don't
    actually do the nessecary queue drains.
    
    Also remove the unlikely around both the DISCARD and BARRIER requests -
    the happen far too often for a static mispredict.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    fbbf0556
blk-core.c 67.7 KB